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]

problems in C functions call C++


Dear Sir/Madam:

I encountered a tough situation:

In my code have both c & c++ source code, some functions in c code call functions in c++, and vice versa.

First I compiled the code using gcc compiler to a dynamic library(.so), it's okay.  But when I changed compiler to arm gcc( version listed below:

(arm_v6_vfp_le-gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0.7.custom 2005-05-22)

Copyright (C) 2004 Free Software Foundation, Inc.)

Something happens to the functions implemented in C++ code, and called by C functions.  When I look the symbol table of .so(using nm tool), I found some differences between .so compiled with gcc and that compiled with arm gcc.  Functions (mentioned above, implemented in C++, called by C) were unresolved, that means the linker cannot locate the implementation of those functions.

Could you help me to solve this problem?  If the problem I did not describe clearly, I'll give more details.

 

Thank you.

 

Best regards,

Dale Tian

Global Software Group, Motorola China

No. 108, Jian Guo Road

Chao Yang District

Beijing 100022

P.R.China

============================

General Business Information


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