C++ Environment with C Extension Source Files

Issue:
C++ source files that contain a .c extension fail when building a VCAST environment.
Solution:

The reason for the failure is because by default VectorCAST uses a C compiler to compile source files with a .c extension, regardless of the compiler template selected.

To get around the problem, you will need to select a C++ compiler template and then remove the .c from the C extensions list and add it to the C++ extensions list. This can be done in step 1 of the Create New Environment dialog (Language tab) or in the VectorCAST Options (Tools | Options | C/C++ (tab) | Language (tab)).



Article ID: 1455
Last updated: 2019-10-24
Revision: 4
VectorCAST -> C++ Unit Testing -> C++ Environment with C Extension Source Files
https://kb.vector.com/entry/1455/