User forums > Using Code::Blocks

Errors building with mingw

(1/2) > >>

CDarcey:
I have installed current copies for Code:Blocks, wxWidgets, minGW and MSys.
I used the wizard to start a wxWidgets project using wxSmith, frame based.
Select all three options in wxWidgets Library Settings and use precompiled headers.
This produced 2 errors "A matching Debug/Release configuration...." I ignored these.
Added a wxgridsizer and wxGrid to the frame.
Build first came up with error: Platform.h (196) wx/setup.h not found.
I copied setup.h from wx/msw to try this out.
This seemed to fix the problem, but the linker then failed with: ld.exe  cannot find -lwxmsww28ud.

Can anyone advise on what I am doing wrong, or how this might be resolved ?

JGM:

--- Quote from: CDarcey on August 15, 2007, 03:22:28 am ---This seemed to fix the problem, but the linker then failed with: ld.exe  cannot find -lwxmsww28ud.

--- End quote ---

You have to add wxmsww28ud library to the project linker settings by pointing the directory that had it after you compiled wxWidgets. Usually wxdir\lib\gcc_dll or something like that.

CDarcey:
Thanks for the response. There does not appear to be a directory of this name (or anything like it), I installed wxWidgets by downloading and running wxMSW-2.8.4-Setup.exe. Is there some other step required after this ?

Biplab:

--- Quote from: CDarcey on August 15, 2007, 03:22:28 am ---This produced 2 errors "A matching Debug/Release configuration...." I ignored these.

--- End quote ---

Don't ignore these warnings unless you know exactly what you are doing. The warnings are pointing towards the possible wrong wx configurations.


--- Quote from: CDarcey on August 15, 2007, 03:22:28 am ---Can anyone advise on what I am doing wrong, or how this might be resolved ?

--- End quote ---

You've downloaded the source of wxWidgets. You've to compile it first. :)

CDarcey:
OK this is making sense, I did not realise that this build step was necessary until searching for instructions on howto.
Question: can you point me to some instructions for compiling wxWidgets using minGW that work. I have found a couple but these refer to v2.6.4 and fail anyway.

Navigation

[0] Message Index

[#] Next page

Go to full version