Author Topic: wxWidget test programs  (Read 3074 times)

Offline C D Tamhankar

  • Multiple posting newcomer
  • *
  • Posts: 16
wxWidget test programs
« on: May 25, 2006, 05:40:35 am »
Hello

I have working knowledge  C++. I used to use  borland commandline compiler ( or BC5.02 IDE ) for my console base programs.

As borland compiler (free ) is not updated for few years, I have decide to switchover to GCC or Openwatcom compilers.  I want to use CB as  IDE which has all the features expected by me.

I have also downloaded wsWidgets.

I want to compile & test "Hello World" or equivalant program available in test folder of wxWidgets.

Can someone guide me how to create wxWidgets Library using CB & GCC/watcom compiler  and link such library with above program?

Has anyone contributed similar project?

PLEASE HELP!!

Thanks in advance

-CDTamhankar
[newbie for  C:B  &  wxWidgets]

Offline Defender

  • Multiple posting newcomer
  • *
  • Posts: 49
Re: wxWidget test programs
« Reply #1 on: May 25, 2006, 07:24:22 am »
Hello, and welcome to CodeBlocks  :)

The way, how you can build wxWidgets is described in the Wiki: http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook#wxWidgets

it's pretty easy:
SHARED=1 => DLL
MONOLITHIC=1 => Only one big output DLL instead of many small

If you are creating apps withwxWidgets, you should specify the wxWidgets dir in the Include dirs and Lnk dirs, both are located in the Project Build options menu.
You also have to add the wx library, you just built to the linked libraries.

After that you can start developing :)

Regards, Defender.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: wxWidget test programs
« Reply #2 on: May 25, 2006, 11:30:38 am »
As borland compiler (free ) is not updated for few years, I have decide to switchover to GCC or Openwatcom compilers.  I want to use CB as  IDE which has all the features expected by me.

Hello,

Regarding the compiler, I would advice you to use GCC :). Anyway, before take a final decision, give a look (and eventually a try) to both of them.

Best wishes,
Michael

Offline C D Tamhankar

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: wxWidget test programs
« Reply #3 on: May 25, 2006, 04:44:00 pm »
Thank you ... Defender ..... & .....Michael     for the link and advice 

I will try to create wx library using GCC.
Hope it will be smooth phase.
If I have any problems, I will trouble you all again.

Regards
CDTamhankar

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: wxWidget test programs
« Reply #4 on: May 25, 2006, 04:56:20 pm »
I will try to create wx library using GCC.
Hope it will be smooth phase.
If I have any problems, I will trouble you all again.

Hello,

Building wxWidgets with GCC 3.4.4 or 3.4.5 is easy. Just a matter of 2 commands :). With GCC 4.1.0 it is not yet possible. With GCC 4.0.3, it is possible, but I could not build C::B from SVN sources.

Best wishes,
Michael