Linking C++ Functions in C

Vishal Chanchalani gccmailinglistid@yahoo.com
Mon Aug 27 01:02:00 GMT 2001


Hi,

I'm trying to get C++ functions to be linked in a C
Program. For that i have used extern "C" definitions
in the c++ code, and teh object file built has the
names for those functions. 

This works fine, and links to teh c program till i do
not use "new" in the c++ functions. The moment i use
it, the linker gives an error for new and delete. 

Is there any workaround for this ?

Thanks

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



More information about the Gcc-help mailing list