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]

Any resources on linking c++ with c


Hi,

This is just to ask if there are any resources
available, so that one can write a library in c++,
which can be linked in c programs. The difficulty that
i am facing is about name mangling. If i compile the
library using gcc, and then try linking the library
through sun compiler, there are some issues with name
mangling where __builtin_delete and __builtin_new and
a few more are undefined. 

Is there any way to avoid this ?
Or am i missing some compiler flags ?

Thanks and regards...

__________________________________________________
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]