norlab-ulaval / libnabo

A fast K Nearest Neighbor library for low-dimensional spaces

Home Page:http://norlab-ulaval.github.io/libnabo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid numeric argument '/Wextra' for MSVC14

weiquanmao opened this issue · comments

commented

I got error when compiling *.sln with VS2015 on Win 10

cl : Command line error D8021 : invalid numeric argument '/Wextra'

I found it was caused by the following line:

https://github.com/ethz-asl/libnabo/blob/f96a29264dd4d10b3d213da90da429c1c1fe2112/CMakeLists.txt#L47

which should be defined for GCC. It was fixed as following in my case.

if(CMAKE_COMPILER_IS_GNUCXX)
  add_definitions(-Wall -Wextra)
endif(CMAKE_COMPILER_IS_GNUCXX)

Thanks for your suggestion. It is a known limitations. Could you maybe test the PR #74 (branch fix/setWarningsCompilerSpecificAndWithCompilerFlags)? If it works for you we can merge it and the problem should be solved.

Great! Thanks for testing!
This issue should be closed once #74 is merged.

#74 was merged.