-1
鏈接libssh庫我得到以下錯誤,當我試圖編譯我的測試程序如何在Makefile中
g++ main.cpp -o main
/tmp/ccICBwKO.o: In function `main':
main.cpp:(.text+0xa): undefined reference to `ssh_new'
main.cpp:(.text+0x2d): undefined reference to `ssh_free'
collect2: error: ld returned 1 exit status
make: *** [main] Error 1
在我的make文件,我有。 (我真的很討厭C/C++ ...)
完美無瑕。 makefile可以通過刪除Makefile中前導$來修復。順便說一下,這不是一個與libssh相關的問題。 – Aris