This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using object compile with gcc with g++
- From: "Ernst Damien" <dernst at ulg dot ac dot be>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 3 Oct 2003 05:12:12 +0200 (CEST)
- Subject: Using object compile with gcc with g++
Hi,
I have some objects (.o) that have been compiled with gcc (the source code
is written in c) and I would like to call some of these functions from a
program that I write in c++. I seems that when linking the different
objects, the compiler cannot identify the functions that are inside the .o
objects written in C and that are called from the .o objects written in
C++.
Thanks for your help.
Damien
--
Damien ERNST Post-doctoral researcher
University of Liege - Dpt. of Elec. Eng.,
Building B28, Parking P32, B-4020 Liege, BELGIUM.
email : dernst@ulg.ac.be
homepage : http://www.montefiore.ulg.ac.be/~ernst/