Simon Chamlian

Mixing C with C++ in CW7.1

Discussion created by Simon Chamlian on Dec 16, 2009
Latest reply on Dec 17, 2009 by Haihang Sun


Hi,

I have a whole project written in C, tested and running.

 

I would like to add any new file in CPP.

 

Is that possible without having to alter all existing files?

 

Is it possible to use


#ifdef __cplusplus
#pragma cplusplus on
#endif // __cplusplus

 

 

in the newly added CPP files without changing the project compiler settings (i.e., Force C++)?

 

Thanks,

SVC

Outcomes