Is it possible to use the VStudio C++ compiler for C? I am doing some C
programming and wonder if there is a way for me to use the compiler in
VStudio to compile my C code, preferably from the command line?
---
Richard
workaholic - 01 Apr 2007 09:39 GMT
Of course you can,just choose the console application at the beginning,
or just open a *.c file with VS IDE, then compile it.
> Is it possible to use the VStudio C++ compiler for C? I am doing some C
> programming and wonder if there is a way for me to use the compiler in
> VStudio to compile my C code, preferably from the command line?
>
> ---
> Richard
Richard - 01 Apr 2007 22:09 GMT
[Please do not mail me a copy of your followup]
=?Utf-8?B?cmNlZGVyYmVyZw==?= <rcederberg@discussions.microsoft.com> spake the secret code
<F47373C0-1228-4B19-AD0A-0C020629DE06@microsoft.com> thusly:
>Is it possible to use the VStudio C++ compiler for C? [...]
Use the C++ project type and choose an empty project. Then do "Add
existing item..." for that project to add your .c and .h files.
I'm doing this right now with FractInt and it works great. You may
get a lot of warnings about insecure C string functions. You can turn
those off with a #pragma.

Signature
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Legalize Adulthood! <http://blogs.xmission.com/legalize/>