首页 新闻 会员 周边 捐助

aix gcc编译

0
悬赏园豆:10 [待解决问题]
-bash-3.2$ g++ base_func.o pub_dir_file.o datetime.o log.o config.o sync.o md5.o des.o gethostinfo.o dbpool.o dbinfo.o dbpool_factory.o c_system.o c_time.o pid_info.o xmlconfig.o -maix64 -shared -lpthread -lstdc++ -L/app/ob_rel/lib libtinyxmlD.so -lclntsh -o libbaseSysClassD.so
g++: libtinyxmlD.so: A file or directory in the path name does not exist.


-bash-3.2$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,java --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0 --target=powerpc-ibm-aix5.3.0.0 --build=powerpc-ibm-aix5.3.0.0 --disable-libjava-multilib
Thread model: aix
gcc version 4.2.0


aix 5.3 0009
superren1的主页 superren1 | 初学一级 | 园豆:190
提问于:2011-09-14 14:03
< >
分享
所有回答(1)
0

建议详细描述一下你遇到的问题。

dudu | 园豆:30948 (高人七级) | 2011-09-14 14:55

g++  test.o -maix64 -lpthread -lstdc++   -L/app/oracle/product/10.2.0/db_1/lib -L. -L/app/ob_rel/lib -lclntsh -ldl -ltinyxml -o test
ld: 0706-006 Cannot find or open library file: -l tinyxml
        ld:open(): A file or directory in the path name does not exist.
collect2: ld returned 255 exit status
 
路径都没有问题,如果这样写就没有问题
g++  test.o -maix64 -lpthread -lstdc++   -L/app/oracle/product/10.2.0/db_1/lib  /app/ob_rel/lib/libltinyxml.so -lclntsh -ldl --o test


 

支持(0) 反对(0) superren1 | 园豆:190 (初学一级) | 2011-09-14 15:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册