Hi, first post.
I have had great success using Code::Blocks for use on console projects.
I had been using wxWidgets with wxDev but wanted to move on to a more current compiler/IDE/lib...so...now...
not so much success.
Installed Code::Blocks using codeblocks-10.05mingw-setup
I check for mingw32-make -v and get
GNUMAKE 3.81
built for i386-pc-mingw32
--> all good
Installed wxWidgets first from src and comping cmd line
(build options) mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
had a great old time trying to get past the setup.h issue - compiler couldn't find it...searched directories on my computer found a copy and cut past. (read a few posts all the way back to 2005 and maybe something I missed here?)
seemed ok until I try a min project with wx where compliation seems to work until:
ld.exe||cannot find -lwxmsw28|
FINE..I reinstalled wx with wxPack_v2.8.8.04
same problem. So...what now...so close...
Here, I'll open a new project:
New Project
Select wxWidget project
nagged for version of wxWidg ... I select wxWidgets 2.8.x.x
I click Next >
path ... C:\Users\dp\Documents\c++\wx\anotherTest\testMyPatience\testMyPatience.cbp
I click Next >
Preferred GUI builder: None. // Application Type: Frame based.
I click Next >
wxWidgets location C:\wxWidgets-2.8.12
I click Next >
Under compiler selection GNU GCC Compiler
I see Create "Debug" and "Release" configuration both checked Output dir and Objects output dirs at: bin\Debug and Release respectively.
I click Next >
Under various configurations options:
->under wxWidgets Library Settings... I have variously check or not check the options.
*Use wxWidgets DLL
*wxWidgets is built as a monolithic library
*Enable unicode
->Miscellaneous Settings...
*Create Empty Project (not checked)
*Create and use precompiled header
(PCH) (not checked - though I find it interesting that the project still contains PCH)
I check Configure Advanced Options ...
I click Next >
I get nag msgbx
"A matching Debug configuration cannot be found in the wxWidgets directory you specified. This means that the Debug target of you project will not build.
Are you sure you want to continue with these settings?"
I click 'Yes'
I get the same box with 'Release configurations' not found.
I click 'Yes'
Under advanced options window:
I leave Use__WXDEBUG__ and Debug wxWidgets lib unchecked
Debug target -> GUI Mode Application
Release Target -> GUI Mode Application
Finish
In new project I have:
testMyPatienceApp and Main .cpp
testMyPatienceApp and Main .h
and resource.rc
I clean, I Build:
Build: Debug in testMyPatience ---------------
Compiling: testMyPatienceApp.cpp
Compiling: testMyPatienceMain.cpp
Compiling: resource.rc
Linking executable: bin\Debug\testMyPatience.exe
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
1 errors, 0 warnings
Every time...
is lwxmsw28 a generated intermediate? switch? Is this something to do with msw setup? Is there something fundamental about msw, wxWidgets and Code::Blocks enviro vars I am missing that is obvious here?
I find it worrisome that there is no matching Debug/Release configuration being found in the wxWidgets directory. I'm just so glad I didn't try to set up wxWidgets in MSVS!
Any thoughts good and insightful people?
thanks
dp
MS Windows 7 Home Premium 64-bit SP1
Pentium Dual-Core CPU E5800 @ 3.20 GHz, 3.0 GB RAM, Intel G45/G43 Express Chipset
Code::Blocks release 10.05
mingw32 GNUMAKE 3.81
wxpack 2.8.8.4 used
c:\wxWidgets-2.8.12
c:\MinGW