This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking C++ Functions in C
- To: gcc-help at gcc dot gnu dot org
- Subject: Linking C++ Functions in C
- From: Vishal Chanchalani <gccmailinglistid at yahoo dot com>
- Date: Mon, 27 Aug 2001 01:02:39 -0700 (PDT)
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/