0
나는 here에서 liblbfgs 다운로드 내가 liblbfgs로 컴파일하는 방법은 무엇입니까?
./sample
을 실행하십시오
g++ sample.cpp -o sample -llbfgs
과의 문서에서 샘플 코드를 컴파일하지만 여분의 플래그
./sample: error while loading shared libraries:
liblbfgs-1.10.so: cannot open shared object file: No such file or directory
있습니까 말한다 I 추가해야합니까? 감사!!
라이브러리 경로 -L "librarypath"를 추가하고 경로 -I "includepath"를 포함합니다. – user1502952