G*****9 发帖数: 3225 | 1 Please give me some hints.
I need to call several C functions in a *.SO file from C++. The *.SO file is
also written by me, but for some hard reasons, I must make it C instead of
C++. Then, how should I link them to C++ and use g++ command to compile. My
system is AIX. |
G*****9 发帖数: 3225 | 2 OK. I solved the problem myself. Really dislike AIX. It is much more
difficult to use compared with UNIX.
However, could somebody help me understanding name mangling issues? Thank
you. |
b***i 发帖数: 3043 | 3 what is your issue?
【在 G*****9 的大作中提到】 : OK. I solved the problem myself. Really dislike AIX. It is much more : difficult to use compared with UNIX. : However, could somebody help me understanding name mangling issues? Thank : you.
|
G*****9 发帖数: 3225 | 4 I am creating *.SO files based on CPLEX ILOG Concert. However, this
technology is not officially supported on AIX and the main issue lies in
that g++ cannot link libraries right due to name mangling.
On IBM's bbs, people told me it is very challenging to use c++/ILOG Concert
on AIX. I want to try my luck here. |
b***i 发帖数: 3043 | 5 did you try extern "C" for your C function?
Concert
【在 G*****9 的大作中提到】 : I am creating *.SO files based on CPLEX ILOG Concert. However, this : technology is not officially supported on AIX and the main issue lies in : that g++ cannot link libraries right due to name mangling. : On IBM's bbs, people told me it is very challenging to use c++/ILOG Concert : on AIX. I want to try my luck here.
|
G*****9 发帖数: 3225 | 6 Yes.
【在 b***i 的大作中提到】 : did you try extern "C" for your C function? : : Concert
|