Cmake error undefined symbols for x86_64

后端 未结 2 506
独厮守ぢ
独厮守ぢ 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.

提交回复
热议问题