This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C++ Exceptions - Ignore for .c files?

Hi,

In a large project, it is common that .c files are used alongside .cpp files. When enabling C++ exceptions in the project settings, the setting is applied to all compiled files, thus causing the compiler to halt on every .c file with the error:

Command-line error #593: exception handling option can be used only when compiling C++

This forces me to have to manually go over each .c file and remove the checkbox that enables the --exceptions option in the project properties, a very tedious process. Would it be possible for the build system to automatically prevent this option from affecting .c files?

Thanks,

-itay