Is there something like extern "CPP" ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have megabytes of sources which follow the C++ syntax rather than the C s= yntax.
These are NOT 'real' C++ sources (no objects, they just use C++ syntax).

Unfortunately I have to migrate to a different development environment whic= h uses gcc in the back end, BUT only as a C compiler. In this new system, I=  have NO access to the makefile, nor the command line used to call gcc.

The question, is: how, IN the .c file, do I tell gcc that the code bellow s= hould be parsed/compiled using the C++ syntax (the only thing I can touch b= eing my source files...)

Can I do something like
extern "CPP" {
My code
}
(ok, I do know that extern, as a concept, is not exactly what I am looking for, but I was trying to find something close enough that people would understand).

Or is there a #pragma for this?


Command lines options are unfortunately not workable for me...

Thanks
Cyrille






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux