简体   繁体   中英

Compile as C99 file in xcode C++ project

I'm writing a C++ project on Xcode7. my main function is in a cpp file but all of my other files are .c files. Is there a way to tell the Xcode to compile all of the .c files as c99 and not as cpp files?

Xcode will automatically compile each source file based on its file extension.

If you examine the details of the source file in Xcode, you should see the type of file Xcode believes it is.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM