CMake unable to determine linker language with C++

后端 未结 10 1698
野趣味
野趣味 2020-11-28 06:41

I\'m attempting to run a cmake hello world program on Windows 7 x64 with both Visual Studio 2010 and Cygwin, but can\'t seem to get either to work. My directory structure is

10条回答
  •  情歌与酒
    2020-11-28 07:13

    In my case, implementing a member function of a class in a header file cause this error. Separating interface (in x.h file) and implementation (in x.cpp file) solves the problem.

提交回复
热议问题