I just finished following the tutorials here (http://wxpack.sourceforge.net/Tutorials/CodeBlocks) (at least the steps pertaining to wxWidgets, already have Code::Blocks set up) and here (http://wxpack.sourceforge.net/Tutorials/CodeBlocksWxWizardGCC) in an attempt to get wxWidgets set up with Code::Blocks, but when I try to compile a wxWidgets project I get the error:
=== wxWidgetsTest, Release ===
preprocessing failed.
=== Build finished: 1 errors, 0 warnings ===
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...
Okay, I have GCC v3.4.5 and am running Windows XP Pro SP3, 32bit.
Here's the command log from the compile...
-------------- 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
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!
Moved all the projects into a new folder "C:\Cpp". Unfortunately, it seems it's trill trying to look in "Program Files" for the curses library, which it wouldn't be able to find there even if it could use spaces, as I haven't had Code::Blocks or any other programming related files in "Program Files" since I discovered how much it dislikes spaces in file names...
That being said, when I first started I let CodeBlocks install to the default program files folder, so I'm guessing there has to be a record somewhere that's telling it to look there, but I don't know where... I checked my environment variables, to see if there was one there holding a path with a space in it, but nothing, save the temp folder ones... should I change those?
Thanks again for all your time and help!
-------------- 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:\Cpp\wxWidgetsTest\wxWidgetsTestApp.cpp -o obj\Debug\wxWidgetsTestApp.o
windres.exe -i C:\Cpp\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, 0 seconds)
1 errors, 0 warnings
[EDIT]: Just realized it's looking for the DevPaks folder in Program Files too... I'll see if I can figure out why during my down-time at school today...