I am using codelite v2.9.0-4684 on Win-XP SP3 with gcc version 4.5.2.
Up until now I have not used codelite for wxWidgets projects on Win-XP but decided to give it a go.
I created a new workspace and added a wxWidgets project which autmatically added a main.cpp.
On building this project I get a compiler error as forllows
Code: Select all
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "gcc-test_wsp.mk""
----------Building project:[ gcc_test - Debug ]----------
mingw32-make[1]: Entering directory `H:/Projects/gcc-test/gcc-test'
g++ -c "H:/Projects/gcc-test/gcc-test/main.cpp" -g -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IH:\wxWidgets-2.8.12\lib\gcc_dll\mswud -IH:\wxWidgets-2.8.12\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -D__WX__ -o ./Debug/main.o "-I."
H:/Projects/gcc-test/gcc-test/main.cpp:12:19: fatal error: wx/wx.h: No such file or directory
compilation terminated.
mingw32-make[1]: *** [Debug/main.o] Error 1
mingw32-make[1]: Leaving directory `H:/Projects/gcc-test/gcc-test'
mingw32-make.exe: *** [All] Error 2
----------Build Ended----------
1 errors, 0 warnings, total time: 00:00:16 seconds
If instead I use
g++ main.cpp -IH:/wxWidgets-2.8.12/include -IH:/wxWidgets-2.8.12/lib/gcc_dll/mswu
wx/wh.h is found ok.
What do I need to do to overcome this problem??
Many thanks
Noel