gcc newly installed libraries (libexpat1-dev) not recognised in current terminal (debian)

[亡魂溺海] 提交于 2019-12-06 09:49:06
thiton

The linker line (i.e. the flags you give with -l and your input file names) are order-dependent. Libraries are only used to define functions used on their left side, but not on their right. Use:

 gcc -Wall line.c  -lexpat -o blah

See the question library is linked but reference is undefined for more information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!