Post reply

Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Clark
« on: March 07, 2025, 02:48:28 PM »

You'll need to add a Rule for .c files which has different options. I manually added the rule to the .vpj file. I don't think this can be done through the GUI. Attached is a sample GNU C/C++ project where I've added a rule for .c files so I can use a different compiler (gcc instead of g++). You can change the options specified too. See gnucpp1.vpj.
Posted by: Bwana The Bigg
« on: March 07, 2025, 09:35:25 AM »

Hello!
I have a project, some of the source files are in C, some in C++. For compilation, I set "CC" in the "Build:GNU C Options:Compiler" field and C files are compiled with gcc, and C++ files with g++. However, C files should be compiled with one set of options, and C++ files with others. Can I somehow set separate options for C and C++ files?