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]
Other format: [Raw text]

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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]