I have a strange problem. My compilerwarnings look like
code\/log_event.h:59:16: warning: 'xxxxxx'
code\/log_event.h:58:18: warning: 'xxxxxxxx'
code\log_event.cpp:15:1: warning: xxxxxxxx
The problem is that I use Jenkins Compilerwarning plugin which resolves the paths to the files. And obviously it is not possible to find the correct path to file log_event.h. This is because it parses the compilerwarning and finds a “/”. But this only occurs in the header file. Currently I’m using qmake to build.
Does anyone know a solution to this?
edit:
i think i found the problem: qmake genereates a source file with
SOURCES = code\log_event.cpp
but
OBJECTS = test/bin/debug/log_event.o
with the wrong slash 🙁
I’ve found the following solution for this problem:
In the .pro file I added “QMAKE_DIR_SEP = /” and now everything works fine under linux and under windows. There is still a mixture of \ and / in the Makefiles generated under Windows, but with this configuration everything compiles AND the output is correct.