私はmakeを使用してC++プログラムをコンパイルしていますが、これは私が得ているエラーです。fglut/libfglut.a(freeglut_state.o):シンボル 'XGetWindowAttributes'への未定義参照
/usr/bin/ld: fglut/libfglut.a(freeglut_state.o): undefined reference to symbol 'XGetWindowAttributes'
//usr/lib/i386-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:55: recipe for target 'morphlines' failed
make: *** [morphlines] Error 1
私は(*.a
は単にオブジェクトファイルのアーカイブである)これは静的にリンクしますlibfglut
私に語っ