g++ 出现 undefined reference to ...... g++ 出现 undefined reference to ...... 检查/usr/local/lib /usr/lib 发现已经存在相应的库文件 那么,问题可能出现在g++链接次序上,即先链接.o文件,然后再去找依赖库