0
에서 "DSO는 명령 줄에서 누락"나는 얻을 다음과 같은 오류 :libX11
$ readelf -s /usr/lib/x86_64-linux-gnu/libX11.so.6 | grep XKeycode
259: 000000000008a000 646 FUNC GLOBAL DEFAULT 11 XKeycodeToKeysym
1308: 0000000000029830 73 FUNC GLOBAL DEFAULT 11 _XKeycodeToKeysym
:
/usr/bin/ld: keycode.o: undefined reference to symbol 'XKeycodeToKeysym'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
그러나, 기호 그냥 전역 변수는
나는이 question을 발견했지만 사용자가 방금 잘못된 장소에 연결했거나이 question, whi ch는 pkgconfig
과 관련이 있습니다. 내가 볼 수있는 한 내 빌드 명령은 정확해야합니다.