嗨stackoverflow社区现在我的第一个问题我是你的一部分.我的问题很简单:我想在c ++程序中使用netpbm库,但无法链接.
g++ test.cpp -o test -lnetpbm
/tmp/ccZsqYHK.o: In function `main':
test.cpp:(.text+0x39): undefined reference to ppm_readppm(_IO_FILE*, int*, int*, unsigned int*)
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,我已经链接了netpbm,但错误并没有消失.我已经搜索谷歌几个小时但没有查询进入.似乎没有人有这个问题.
任何帮助将不胜感激