关于sw5gcc和sw5g++的编译运行问题
-
我在登录节点
psn***
上写了c和c++的helloworld程序(都在/home/export/online3中),分别都可以用sw5gcc和sw5g++编译:sw5gcc -mhost helloworld.c -o helloworld.out sw5g++ -mhost helloworld.cpp -o helloworld.out
但是在使用bsub的时候都会报错说找不到相关的库:
bsub -I -q q_sw_expr -N 1 -np 1 -sw3run swrun-5 ./helloworld.out ...... error while loading shared libraries: libc.so.6.1: cannot open shared object file: No such file or directory ...... error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
请问这个要怎么解决?谢谢!
-
加个
-static
试试
-