C/C++ mixing during linkage

New Message Reply Date view Thread view Subject view Author view

From: Devrim Erdem (devrim++at++vires.com)
Date: 10/27/2001 08:59:43


Hi,

My platform : Linux, Suse 7.1, Pf 2.4.2

I have an assumption. I have a performer application written in C. I
also have some code written in C++ with header files C compatible (
doesn't contain anything C++ ) . I assumed that I could link C++ and C
objects files to build the Performer application. Via the C header files
main.c (a C source code ) is calling functions which are implemented in
C++.

The problem is that the linker can not resolve the functions implemented
in C++. On IRIX I had to inform the linker about the C++ objects and
that would allow me to link C and C++ objects. I have gone thru the man
pages of gcc and ld but I can not see anything specific. Any
ideas/experiences ?

Thanks in advance.

Devrim Erdem


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Oct 27 2001 - 09:01:48 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.