User forums > Using Code::Blocks

Compile a hello world project

<< < (3/4) > >>

cotede2:
I am sorry but I may miss something right here?
I compile wxwidget using the build = debug .
Indeed, it produces as the documentation says this:

A release build of wxWidgets creates libraries without the "d" suffix -- for example, "libwxmsw28.a"/"wxmsw28_gcc_custom.dll".
A release build of wxWidgets creates the folder "msw" or "mswu" in the wxWidgets library output folder.

But when I do create a new wxwidget project under code blocks, I cannot select any configuration among Debug or Release despite the fact I did correctly compile wxwidget.

Here is the problem http://yfrog.com/5n55001653j
Whatever the configuration I select, it says then "cannot be found"
Thank you for help.


stahta01:
You are doing something wrong or you found a bug; but without the steps you followed no one can confirm if it is a bug or not.

Minor things to check include:
   Does setup.h exists in the proper location under your wxWidgets sub-folder?

IIRC,  the location is about "C:\wxWidgets\Lib\gcc_dll\wx\msw???\setup.h
Where ??? is set by debug/release and ANSI/Unicode options.

  Does the wxWidgets DLLs exists?

What type of wxWidgets are you trying to use? Unicode/ANSI, Release/Debug, MultiLib/Monolithic

Tim S.

cotede2:
Yes the setup.h is present several times under the wxwidgets folder like :

Here:  C:\wxWidgets\lib\gcc_dll\mswu\wx
And
Here: C:\wxWidgets\lib\gcc_dll\mswud\wx

Indeed I launched the two commands

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1

I have also :
wxmsw28u_gcc_custom.dll
and
wxmsw28ud_gcc_custom.dll

And here is how I proceed to create a wxwidget project under code blocks:
File -> New -> WxWidget
Please make a selection wxwidget 2.8.x
Project title : testremi
Author : Empty
Preferred GUI Builder: None
Application Type: Frame Based
wxwidget locations : C:\wxWidgets
Compiler : GNU GCC Compiler
Create Release configuration (checked) : Release
Release option :bin\Release\
Objects output dir : obj\Release\
Next Page nothing checked
Next => Warning 

" A matching Release Configuration cannot be found ..."
...
So I cannot build anything .
Is that a bug?

Jenna:
Check the oprojects build-options (compiler searchpath, linker searchpath).
Turn on full compiler logging and see what is really sent to compiler/linker (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F).

stahta01:
You still have NOT stated if you are picking the Unicode DLL build during the Code::Blocks Wizard.

Note: The settings may be under advanced options in wizard.

Edit: Please try Checking the correct wxWidgets Library Settings
use wxWidgets DLL
wxWidgets is an Monolithic build
enable unicode

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version