【发布时间】:2019-01-12 09:04:57
【问题描述】:
我运行以下链接器命令
g++ -Wl,-rpath,/opt/Qt/5.11.1/gcc_64/lib -o qt_mapnik main.o mainwindow.o moc_mainwindow.o -L/usr/local/lib -lmapnik -lboost_filesystem -lboost_regex -lpng -lproj -ltiff -licui18n -lboost_system -lharfbuzz -ljpeg -licuuc -lfreetype -lz -ldl -L/home/mark/Documents/mapnik/freetype -L/usr/lib -pthread -L/opt/Qt/5.11.1/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
此消息出错p>
/usr/bin/x86_64-linux-gnu-ld: main.o: undefined reference to symbol '_ZNK6icu_6013UnicodeString10doHashCodeEv'
//usr/lib/x86_64-linux-gnu/libicuuc.so.60: error adding symbols: DSO missing from command line
它告诉我链接器命令中缺少 libicuuc 库(即-licuuc),但它肯定存在。我错过了什么?
【问题讨论】:
标签: gcc linker g++ linker-errors