Author Topic: Problem creating a wxWidgets project  (Read 18652 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Problem creating a wxWidgets project
« Reply #15 on: June 03, 2005, 07:19:55 am »
To make the dll option work you need the wxwidgets "compiled for dll linking". You'd need to follow the instructions at the wiki.

c_major

  • Guest
Problem creating a wxWidgets project
« Reply #16 on: June 03, 2005, 10:49:54 am »
Hi

Also, there seems no easy way to rename the default program and include file names.  So I found it quite annoying especially when I create a wxwidget project using the option "Use separate wxApp, wxFrame files" which create 4 files whose name I have to change.  Is there any plan to add a rename feature in the coming  release ?

Also, when a main.cpp or main.h exist, C::B will allows me to create source files with new names.  But the extension will then become .cxx & .hxx.  This seems not quite consistent.  What do you think ?


C Major

Offline gaymin

  • Single posting newcomer
  • *
  • Posts: 5
    • http://www.ubergeekultd.com
Thanks a bunch for the template
« Reply #17 on: June 06, 2005, 02:24:35 pm »
I originated this thread and had resigned to waiting for the next release, but I am glad that someone put the template up.  Thanks! thanks! thanks!

c_major

  • Guest
Problem creating a wxWidgets project
« Reply #18 on: June 07, 2005, 03:16:18 am »
Quote from: rickg22
To make the dll option work you need the wxwidgets "compiled for dll linking". You'd need to follow the instructions at the wiki.


I see.  In fact I have downloaded wxwidgets 2.6.  But I haven't compile it (to a lib*.a nor *.dll) for use.   I am still using the wxwidgets 2.4 devpak for DevCpp which provides only the libwxmsw.a for "Static".  But since there is already a wxmsw242.dll in C:\Program Files\Codeblocks after C::B installation, so I thought I can make use of it to write programs that use the DLL.

C Major

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Problem creating a wxWidgets project
« Reply #19 on: June 07, 2005, 08:33:50 am »
Quote
But since there is already a wxmsw242.dll in C:\Program Files\Codeblocks after C::B installation, so I thought I can make use of it to write programs that use the DLL.

You would need the accompanying .a library to use it...

Yiannis.
Be patient!
This bug will be fixed soon...

niklas

  • Guest
Multilib template
« Reply #20 on: June 09, 2005, 04:45:13 pm »
Hi
I don't know if this is of any use to anyone, bt this is the template that i use
for wxWidgets 2.6.1 multilib (release) build. enjoy
Code

<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="wxWidgets application"/>
<Option makefile="Makefile"/>
<Build>
<Target title="default">
<Option type="0"/>
</Target>
</Build>
<Compiler>
<Add option="-pipe"/>
<Add option="-mthreads"/>
<Add option="-fno-pcc-struct-return"/>
<Add option="-fno-rtti"/>
<Add option="-fno-exceptions"/>
<Add option="-D_X86_"/>
<Add option="-DWIN32"/>
<Add option="-D_WIN32"/>
<Add option="-DWINVER=0x0400"/>
<Add option="-D__WIN95__"/>
<Add option="-D__GNUWIN32__"/>
<Add option="-D__WIN32__"/>
<Add option="-DSTRICT"/>
<Add option="-D__WXMSW__"/>
<Add option="-D__WINDOWS__"/>
</Compiler>
<Linker>
<Add library="libwxmsw26_core.a"/>
<Add library="libwxbase26.a"/>
<Add library="libwxmsw26_adv.a"/>
<Add library="libwxbase26_net.a"/>
<Add library="libwxbase26_xml.a"/>
<Add library="libwxmsw26_html.a"/>
<Add library="libwxmsw26_media.a"/>
<Add library="libwxmsw26_xrc.a"/>
<Add library="libwxexpat.a"/>
<Add library="libwxjpeg.a"/>
<Add library="libwxpng.a"/>
<Add library="libwxregex.a"/>
<Add library="libwxtiff.a"/>
<Add library="libwxzlib.a"/>
<Add library="winspool"/>
<Add library="winmm"/>
<Add library="shell32"/>
<Add library="comctl32"/>
<Add library="ctl3d32"/>
<Add library="odbc32"/>
<Add library="advapi32"/>
<Add library="wsock32"/>
<Add library="opengl32"/>
<Add library="glu32"/>
<Add library="ole32"/>
<Add library="oleaut32"/>
<Add library="uuid"/>
</Linker>
</Project>
</Code::Blocks_project_file>


This liborder has worked for me so far, so i think that it is ok.