removing include directory from being referenced

I have run into "_____ redefined [-Werror]" and "this is the location of the previous definition _________".  I want to tell cmake to not include directories to find header information, because the project already has their own.  Is there a way to do this?  I did see at one time clion did have this feature however, I have yet to locate it in the version I am currently usgin 2017.

0
2 comments

Hello!

It doesn't look like your problem is with include directories (or at least it is not immediately clear). Could you please send some examples for the problematic locations, which files are they in and how these files are mentioned in the #include directives?

0

Here is a snippet:

 

C:\msys32\mingw32\bin\cmake.exe --build C:\msys32\home\NiteRain\tigervnc\cmake-build-debug --target all -- -j1
[ 0%] Building CXX object common/os/CMakeFiles/os.dir/os.cxx.obj
In file included from C:/msys32/home/NiteRain/tigervnc/common/os/os.h:26:0,
from C:\msys32\home\NiteRain\tigervnc\common\os\os.cxx:23:
C:/msys32/home/NiteRain/tigervnc/common/os/w32tiger.h:162:0: error: "INTERFACE" redefined [-Werror]
#define INTERFACE IActiveDesktop

In file included from C:/msys32/home/NiteRain/tigervnc/common/os/w32tiger.h:27:0,
from C:/msys32/home/NiteRain/tigervnc/common/os/os.h:26,
from C:\msys32\home\NiteRain\tigervnc\common\os\os.cxx:23:
C:/msys32/mingw32/i686-w64-mingw32/include/shlobj.h:1404:0: note: this is the location of the previous definition
#define INTERFACE IColumnProvider

0

Please sign in to leave a comment.