User forums > Help

build codeblocks src

(1/3) > >>

Brentoids:
okay I'm new to codeblocks and I thought that the first project I should build would be the code::Blocks src.
I am getting the following error when I try and run a build.

-------------- Build: tinyXML in Code::Blocks ---------------

mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -DEXPORT_LIB    -IE:\Coding\Lib\wxWidgets-2.8.7\include -IE:\Coding\Lib\wxWidgets-2.8.7\lib\gcc_dll\mswu -Iinclude\wxscintilla\include -Iinclude\tinyxml -Iinclude\tinyxml -I"C:\Program Files\CodeBlocks\MinGW\"  -c F:\Coding\CodeBlocks\src\base\tinyxml\tinyxml.cpp -o .objs\base\tinyxml\tinyxml.o
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
I notice that -Iinclude\tinyxml is included twice (though I'm not sure where I'd go to change this). I'm pretty sure this is not my problem.  I have setup the global variable base directory for wx to be E:\Coding\Lib\wxWidgets-2.8.7 and cb to be F:\Coding\CodeBlocks.  the first directory is where i installed wxWidgets-2.8.7, the second is where I unpacked the Code::Blocks source.  I am using windows and C::B 8.02.  I installed with MinGW.  And I have made sure the Settings\Compiler and debugger...\Toolchain executables[tab]\Compiler's installation directory is set correctly.  I am trying this on a Windows system.

killerbot:
how did you get hold of the CB sources ?, from svn ??

Did you already build wx widgets ?

Have a look here : http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook

thomas:
Funny, this looks perfectly ok.

Jenna:
The only difference to my commandline (inspite of different paths, of course), when compiling C::B from source on Windows (2k) is the additional

--- Code: ----I"C:\Program Files\CodeBlocks\MinGW\"

--- End code ---

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).

thomas:
Hmm... and I can even reproduce it manually on the commandline.

So it seems that getopt (or whatever parses gcc's command line) interpretes the \" as an escaped quote. :(

That's unfortunate, because it imposes a serious limit on what constitutes a valid pathname, and we cannot do without the quotes.

Navigation

[0] Message Index

[#] Next page

Go to full version