- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello,
I am trying to compile a mixed language program on linux: the main is in C++ and it uses a fortran library (compiled with intel fortran compiler).
Makefiles are created with autoconf/libtool. There are no errors in compiling but when running, I get the error:
error while loading shared libraries: libifport.so.5: cannot open shared object file: No such file or directory
I know I have to modify LD_LIBRARY_PATH because the compiler is installed in a weird directory. But the goal is to make the executable portable. What have I to add in the Makefiles to inform the linker to use static libraries?
I am trying to compile a mixed language program on linux: the main is in C++ and it uses a fortran library (compiled with intel fortran compiler).
Makefiles are created with autoconf/libtool. There are no errors in compiling but when running, I get the error:
error while loading shared libraries: libifport.so.5: cannot open shared object file: No such file or directory
I know I have to modify LD_LIBRARY_PATH because the compiler is installed in a weird directory. But the goal is to make the executable portable. What have I to add in the Makefiles to inform the linker to use static libraries?
Message Edited by jacques.fontignie on 10-26-2005 01:36 AM
コピーされたリンク
2 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
If you use iccpc to link, the option -i-static specifies static linking of all possible Intel compiler run-time libraries. Otherwise, you must look up the options for the compiler of your choice, or pass them directly to ld (e.g. -Wl,-Bstatic).