where in visual studio do you set compiler options?

W

WISEMANOFNARNIA

I tried to compile an old C program using Visual Studio. I found a
screen where I changed 'compile as C++' to 'compile as C'. Then I
tried to compile. When I tried, it said that I can't compile C files
with the /clr option. I looked that up, and it seems I should be
using the /TC option. But I cannot find a dialog in Visual Studio
where I can change the compiler options. Where should I look?
Thanks,
Marvin
 
C

christery

And this is a C# question - nah, but I might be wrong?
Any .C file compiled OK in VS6 (I think, dont look at the version)
when I tried, using an express version might be more complex, Tender
love and care (TLC) with your old disks would maybe reveal an old C
compiler, I prefer Borland C 2.0 as a vintage version, K&R C compilers
is what I know free to download - if using *NIX anyway. Using OpenVMS
and pay dearly for all (or my company does)

//CY
 
F

Family Tree Mike

WISEMANOFNARNIA said:
I tried to compile an old C program using Visual Studio. I found a
screen where I changed 'compile as C++' to 'compile as C'. Then I
tried to compile. When I tried, it said that I can't compile C files
with the /clr option. I looked that up, and it seems I should be
using the /TC option. But I cannot find a dialog in Visual Studio
where I can change the compiler options. Where should I look?
Thanks,
Marvin


C++ != C#....

Try creating a win32 project type rather than a CLR project type. I would
presume that the compile options are correct by that project type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top