Cmake error undefined symbols for x86_64

后端 未结 2 527
独厮守ぢ
独厮守ぢ 2021-01-17 06:38

I am trying to compile the conv-net library in my mac osx yosemite with xcode. I even set the flags to libstdc++ still it is not linking properly.

i still get undefi

相关标签:
2条回答
  • 2021-01-17 07:03

    The add_executable command takes a target name and a list of source files to be compiled. When you are creating a target for testimg you are passing it directory.

    Use file(GLOB ...) command to gather all source files from directory into a list variable and pass it to add_executable call.

    0 讨论(0)
  • 2021-01-17 07:09

    I fixed it by adding -c option in the compiler flags and it worked !!!!

    0 讨论(0)
提交回复
热议问题