how to
how to use .so file (linux .so file search order)
즉흥
2019. 4. 23. 19:53
728x90
반응형
Windows의 .dll search order와는 다르다.
linux에서는 실행파일과 .so 파일이 같은 디렉토리에 있어도 .so 파일을 읽지 않는다..;;
우선 search order는 다음과 같다.
- directories from LD_LIBRARY_PATH;
- directories from /etc/ld.so.conf;
- /lib;
- /usr/lib.
하.. 3, 4번은 그냥 저 디렉토리에 넣으면 될 것이고,
1번은 LD_LIBRARY_PATH라는 환경 변수를 편집하여 경로 등록
2번은 /etc/ld.so.conf 파일을 수정해서 경로 등록
What is the order that Linux's dynamic linker searches paths in?
This is not a duplicate because this is dealing with a peculiarity I noticed when I use /etc/ld.so.conf. To get the paths that the dynamic linker searches in for libraries, I run the command ldcon...
unix.stackexchange.com
참조2: http://blog.naver.com/PostView.nhn?blogId=whentlr&logNo=120188305071
리눅스 공유라이브러리(동적 라이브러리) 생성 및 사용
리눅스 공유라이브러리(동적 라이브러리, so) 생성 및 사용 리눅스 버전 : Debian 2.6.32-46gcc 버전 : gc...
blog.naver.com
728x90
반응형