Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Mixed C/C++ in MBS

> I think the biggest problem with this approach is that most projects
> will be using only C++ sources or only C sources, 

I disagree with this assumption.

At Franklin we deal with 3rd party libraries from various vendors, some 
are C some are C++, it is not uncommon to have a mix of glue code in your 
project. That GLUE is where the problems live.

This is *NO* different then having both 's' and 'S' files in a project.

I'm not at all suggesting for example Fortran in the same project, mixed 
Fortran and C/C++ are very rare.  Mixed C/C++ is very common and should 
be supported.

Certainly, one can always "wrap" a C file in 'extern "C"' - but why
must I take out a pocket knife to make that fairly common square 
peg fit in the round hole?

-Duane 



Back to the top