在我的C应用程序中添加引用时遇到了问题。我无法在我的数据压缩器项目中添加链接器对"libiconv“的引用,我已经下载了"libiconv”库,但在添加显示编译错误的引用时感到困惑,我正在使用Dev C++开发我的压缩应用程序。
以下是编译日志:
构建Makefile:“C:\Dev-Cpp\示例\eottest\makefile.win”
Executing make...
make.exe -f "C:\Dev-Cpp\Examples\eottest\Makefile.win" all
gcc.exe eot.o libeot.o properties.o -o "Project1.exe" -L"C:/Dev-Cpp/lib"
libeot.o(.text+0x19):libeot.c: undefined reference to `libiconv_open'
libeot.o(.text+0x36):libeot.c: undefined reference to `libiconv_close'
libeot.o(.text+0x67):libeot.c: undefined reference to `libiconv'
collect2: ld returned 1 exit status`发布于 2010-11-28 10:25:43
您只是指定了一个额外的库路径,而不是要链接到的实际库。尝试:
gcc.exe eot.o libeot.o properties.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" -liconvhttps://stackoverflow.com/questions/4296326
复制相似问题