User forums > Using Code::Blocks

wxWidgets Preprocessing Problems

(1/2) > >>

TimothyS:
I just finished following the tutorials here (at least the steps pertaining to wxWidgets, already have Code::Blocks set up) and here in an attempt to get wxWidgets set up with Code::Blocks, but when I try to compile a wxWidgets project I get the error:


--- Code: ---=== wxWidgetsTest, Release ===
preprocessing failed.
=== Build finished: 1 errors, 0 warnings ===
--- End code ---

That's it, no error code, no reason given for the failure, nothing... what am I doing wrong?  I followed the instructions in the tutorials to the letter...

Oh, I get the same error even if I un-check the "Create and use pre-compiled headers" option...

stahta01:
What version/svn of Code::Blocks?
What version of wxPack??
What Compiler and the version number of it?
If Compiler is MinGW GCC 4.x or higher; is it DW2 or SJLJ?

Tim S.

TimothyS:
Code::Blocks v8.2 (with MINGW, windows binary installer)
wxPack v2.8.9.02
I'm pretty sure I'm using the MinGw GCC compiler, although I'm not 100% sure about the version... it's the version that comes with the Code::Blocks v8.2 w/ Mingw binary...

According to the readme file in MinGw\doc: "This version of binutils was compiled from the vanila 2.18.50-20080109
snapshot."  Not sure if that's the compiler version or not...

Sorry for not posting this in the first place... I know better too...

For future notice, what is the best way to find the version of the currently installed compiler/debugger/etc.?

Thanks for your time!

stahta01:
Turn on full compiler logging and post the results here. Note, I need the results on the Command log not the error message log.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

The following is how to get mingw gcc version info.

--- Code: ---gcc -v

--- End code ---

Edit: What OS are you using?
If vista, you need to upgrade to the newer MinGW gcc 3.4.5 or TDM gcc 4.4.0!

Tim S.

TimothyS:
Okay, I have GCC v3.4.5 and am running Windows XP Pro SP3, 32bit.

Here's the command log from the compile...

--- Code: ----------------- Build: Debug in wxWidgetsTest ---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall  -g -D__WXDEBUG__    -IC:\wxWidgets\include -IC:\wxWidgets\contrib\include -IC:\wxWidgets\lib\gcc_dll\mswud -I"C:\Program Files\CodeBlocks\PDCurses-SO" -I"C:\Program Files\CodeBlocks\PDCurses-SO\win32" -I"C:\Program Files\CodeBlocks\DevPaks\include"  -c "C:\Documents and Settings\Timothy Sassone\My Documents\C++\wxWidgetsTest\wx_pch.h" -o wx_pch.h.gch\Debug_wx_pch_h_gch
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall  -g -D__WXDEBUG__    -IC:\wxWidgets\include -IC:\wxWidgets\contrib\include -IC:\wxWidgets\lib\gcc_dll\mswud -I"C:\Program Files\CodeBlocks\PDCurses-SO" -I"C:\Program Files\CodeBlocks\PDCurses-SO\win32" -I"C:\Program Files\CodeBlocks\DevPaks\include"  -c "C:\Documents and Settings\Timothy Sassone\My Documents\C++\wxWidgetsTest\wxWidgetsTestMain.cpp" -o obj\Debug\wxWidgetsTestMain.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE  -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall  -g -D__WXDEBUG__    -IC:\wxWidgets\include -IC:\wxWidgets\contrib\include -IC:\wxWidgets\lib\gcc_dll\mswud -I"C:\Program Files\CodeBlocks\PDCurses-SO" -I"C:\Program Files\CodeBlocks\PDCurses-SO\win32" -I"C:\Program Files\CodeBlocks\DevPaks\include"  -c "C:\Documents and Settings\Timothy Sassone\My Documents\C++\wxWidgetsTest\wxWidgetsTestApp.cpp" -o obj\Debug\wxWidgetsTestApp.o
windres.exe -i C:\DOCUME~1\TIMOTH~1\MYDOCU~1\C__~1\WXWIDG~1\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\wxWidgets\include -IC:\wxWidgets\lib\gcc_dll\mswud -I"C:\Program Files\CodeBlocks\PDCurses-SO" -I"C:\Program Files\CodeBlocks\PDCurses-SO\win32"
gcc: Files\CodeBlocks\PDCurses-SO: No such file or directory
gcc: Files\CodeBlocks\PDCurses-SO\win32: No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minutes, 40 seconds)
1 errors, 0 warnings
--- End code ---

It would seem there is a problem related to PDCurses, but it is not referenced in any of the source files, and I don't have any trouble compiling projects using PDCurses, or my project using Allegro...

Thanks again for all your help!

Navigation

[0] Message Index

[#] Next page

Go to full version