0
사용중인 라이브러리를 실행 파일을 실행중인 컴퓨터에 설치할 필요가 없도록 C 파일에서 독립 실행 형 실행 파일을 만들고 싶습니다.독립 실행 형 C 실행 파일 만들기
나는 실행 파일을 실행중인 컴퓨터에 모두 설치해야 할 수도있는 libssh
및 libconfig
라이브러리를 사용하고 있습니다. 나는이 라이브러리가 설치되어 있지 않은 컴퓨터에서 내 바이너리를 실행하면
, 내가 얻을 :
error while loading shared libraries: libssh.so.4: cannot open shared object file: No such file or directory
는 libssh
바이너리에 포함했다 있도록 내 program.c
파일을 컴파일 할 수있는 방법이 있나요 그것?
http://stackoverflow.com/questions/16246923/c-compile-with- dependencies-included – user2837329