SNNDPC icon indicating copy to clipboard operation
SNNDPC copied to clipboard

error: 'SOLUTION_DIR' does not name a type

Open mustafimo opened this issue 3 years ago • 3 comments

hello when i try to run your code its shows me this error: 'SOLUTION_DIR' does not name a type, do you have any suggestions ?

BR

mustafimo avatar Jan 28 '22 09:01 mustafimo

I think you need to use CMake, as SOLUTION_DIR is configured by CMakeLists.txt.

liurui39660 avatar Jan 28 '22 09:01 liurui39660

thank you os much for your quick answers, I tried to run it with Cmake and also didn't work I might have issue with my configuration PS D:\Mustafa\Data\SNNDPC-master\SNNDPC-master> cmake -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" -S . -B build\release CMake Error at CMakeLists.txt:3 (PROJECT): Running

'nmake' '-?'

failed with:

The system cannot find the file specified

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!

i have checked my Cmake tools and all works fine except its not working in visual studio

mustafimo avatar Jan 28 '22 10:01 mustafimo

If you don't use Visual Studio, then it may not be able to find nmake generator. I also don't Visual Studio, but I have ninja build installed (and in PATH of course), so my -G argument is -G Ninja.

liurui39660 avatar Jan 28 '22 10:01 liurui39660