stiv wrote:Code: Select all
Where/how can i set up include paths for the commandline? I tried adding the paths into the system variables "classpath" and "path" but that doesn't seem to fix it.
Or do i have to modify the makefiles (i guess not)?
CLASSPATH is for Java class files. Not applicable here.
PATH is for running executables. Like gcc and our old friend ccplus1.exe
Have you read the file COMPILE in the Warzone source dir? It has instructions for mingw.
The COMPILE file includes nearly the same text as the "online compileguide" does

.
cybersphinx wrote:In theory cc1plus shouldn't be in the path, since you can have several gcc exes installed (like gcc-4.4, gcc-4.3...). Every gcc then calls .../mingw32/<itsownversion/cc1plus. The question is how you tell the gccs where its private exes are. Putting that directory in the path might work as long as you never install any other gcc versions into that mingw installation.
Thanks for all your responses, i was finally able to solve all those problems and.... let me tell you.... now i HATE compiling under windows even more
.
Remember my Path settings i posted at the beginning?
there was this little part in it:
the reason why this part has caused all the trouble is that cygwin has its own g++ compiler... I don't know which version and i also don't know why that compiler could not find the "windows.h" "iostream", etc include files (cygwin has them as well), but after i removed the cygwin\bin folder from my PATH, everything works just fine.
now i don't even need to add
Code: Select all
x:\...\MinGW\libexec\gcc\mingw32\<your mingw32 version>\
in order to find the cc1plus.exe file...
Why do things always tend to be more complicated than necessary...
So thanks again for all your patience and help, everything works fine now and i can finally start to look into the code!