This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Mixing libraries in C and C++
- To: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Mixing libraries in C and C++
- From: "Alberto Faraldos Izquierdo" <alberto dot faraldos at sema dot es>
- Date: Fri, 22 Jun 2001 10:58:20 +0200
Hello.
I need to mix into a program written in C, a library written in C++ with
some libraries written in C. The code C++ is compiled with G++, and
libraries written in C are compiled with GCC. When I try to compile and
link all these libraries and the main program written in C with GCC, it
produces several “Undefined symbol” errors when it tries to link all. Is
there any option or workaround to avoid this problem?.
Thanks in advance.
Alberto
Madrid (Spain)
------------------------------------------------------------------
This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of SchlumbergerSema.
If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited.
------------------------------------------------------------------