This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Linking C++ Functions in C


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]