linker woes - undefined reference

前端 未结 6 924
北恋
北恋 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 16:53

    Post your makefile, and the library function you are trying to call. Even simple gcc makefiles usually have a line like this:

    LIBFLAGS =-lc -lpthread -lrt -lstdc++ -lShared -L../shared
    

    In this case, it means link the standard C library, among others

提交回复
热议问题