linker woes - undefined reference

前端 未结 6 939
北恋
北恋 2021-02-08 16:22

I\'m having a problem with my compiler telling me there is an \'undefined reference to\' a function I want to use in a library. Let me share some info on the problem:

6条回答
  •  眼角桃花
    2021-02-08 17:03

    I have encountered this problem when building a program with a new version of gcc. The problem was fixed by calling gcc with the -std=gnu89 option. Apparently this was due to inline function declarations. I have found this solution at https://gcc.gnu.org/gcc-5/porting_to.html

提交回复
热议问题