linking error when building Google test on mac (commandline)

前端 未结 3 1730
梦谈多话
梦谈多话 2020-12-15 07:53

I am currently trying to build some test code that uses Google C++ Test framework but I keep getting an error stating

ld: warning: in /usr/local/lib/libgtest.dylib,

3条回答
  •  时光取名叫无心
    2020-12-15 08:46

    Solution found. It turns out that the build instructions used are correct the issue was that on the computer that the build was being performed another developer had done some work with Google Test Framework 1.5 and they had installed the libraries on the computer in the compilers search path. This resulted in the compiler finding the other library first that was not compiled using multiple architecture options.

提交回复
热议问题