由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - AIX, C-shared library, and g++
相关主题
Ask a g++ compilation qestionUrgent question
问个算法问题Java必然败在oracle身上
inline到底能省多少时间?Java码工们,不要成为被温水煮熟的青蛙
Urgent question: AIX, C++11, Shared ObjectIBM高级软件工程师老印的示例代码,大家看看有多少个bug? (
which gcc version is good for aix 6open-source .NET了
AIX suckspython要把@当作矩阵乘法算符
在linux 和 Unix 上做 C/C++ 有差别吗?陈皓:关于开源和闭源软件我个人Naive的看法(转载)
Question about name resolution in C++哪个大型应用系统用python写的啊?
相关话题的讨论汇总
话题: aix话题: c++话题: so话题: shared话题: library
进入Programming版参与讨论
1 (共1页)
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

1 (共1页)
进入Programming版参与讨论
相关主题
哪个大型应用系统用python写的啊?which gcc version is good for aix 6
C 语言的官方 specAIX sucks
C++ questions在linux 和 Unix 上做 C/C++ 有差别吗?
面试题还是不太清楚怎么回答。尤其是8,我用MSVC试了一下,没有问题啊。Question about name resolution in C++
Ask a g++ compilation qestionUrgent question
问个算法问题Java必然败在oracle身上
inline到底能省多少时间?Java码工们,不要成为被温水煮熟的青蛙
Urgent question: AIX, C++11, Shared ObjectIBM高级软件工程师老印的示例代码,大家看看有多少个bug? (
相关话题的讨论汇总
话题: aix话题: c++话题: so话题: shared话题: library