Jump to content
  • Advertisement
Sign in to follow this  
dxFoo

Compiling a strict-C application in MS VC++ 6.0

This topic is 4829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Compiling a C program still results in a .cpp extension. Is there a way to compile to a .c extension?

Share this post


Link to post
Share on other sites
Advertisement
If you give a file a .c extension it will be compiled as a C language file. Furthermore, in the file properties, under the C/C++ -> Advanced item, you can force "Compile as C Code" (equivalent to /TC on the command line).

Share this post


Link to post
Share on other sites
Where do I find the first "file properties" step? I don't see that under File, for instance. Under languages, it has C/C++ selected, though, but still compiling with a .cpp file.

Share this post


Link to post
Share on other sites
Quote:
Original post by dxFoo
Where do I find the first "file properties" step? I don't see that under File, for instance. Under languages, it has C/C++ selected, though, but still compiling with a .cpp file.


As you can find all properties in Windows: right-click. In this case, right-click on the file name in MSVC's project treeview.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!