The only difference to my commandline (inspite of different paths, of course), when compiling C::B from source on Windows (2k) is the additional
-I"C:\Program Files\CodeBlocks\MinGW\"
If I include my MinGW-base dir with a trailing backslash I get the same error then you.
If I include it without the trailing backslash everything works as expected.
But it also works without the additional include.
If you have added this include-dir somewhere try to remove it, at least remove the trailing backslash.
EDIT:
The error only happens if the include-path with the trailing backslash is quoted if it's unquoted the trailing backslash does not cause an error ( I don't have any spaces in my MinGW basepath).
second EDIT:
I forgot: the quotes are set automatically by C::B if there are spaces in the path, that means an additional search directory entry can be without the quotes (but with the backslash).
Good idea !
I just tried the following patch on my W2K kvm-box and it seems to work:
Index: src/sdk/globals.cpp
===================================================================
--- src/sdk/globals.cpp (revision 5010)
+++ src/sdk/globals.cpp (working copy)
@@ -184,7 +184,11 @@
bool hasSpace = str.Find(_T(' ')) != -1;
bool hasParen = !platform::windows && (str.Find(_T('(')) != -1 || str.Find(_T(')')) != -1);
if (!str.IsEmpty() && str.GetChar(0) != _T('"') && (hasSpace || hasParen))
+ {
+ if (str.Last() == _T('\\'))
+ str+=_T('\\');
str = wxString(_T("\"")) + str + _T("\"");
+ }
}
wxString EscapeSpaces(const wxString& str)
I only compiled a smalll test project with one additional include dir that includes spaces, but everything works fine.