News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

About wxwidgets and different compilers

Started by Priit, August 20, 2005, 11:27:49 AM

Previous topic - Next topic

Priit

I am not a programmer, but time-to-time i like to do some code. I am using three compilers: mingw, digitalmars and ms toolkit 2003.
My question is:
If i compile wxwidgets with dm for example, will all those *.lib work with mingw or ms toolkit too?

Actually i've got a second question too. When i compile wxwidgets with dm, why it build it in debug mode(extra d in file names).
Command i used:
make -f makefile.dmc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=1 VENDOR=cb

tiwag

Quote from: Priit on August 20, 2005, 11:27:49 AM
I am not a programmer, but time-to-time i like to do some code. I am using three compilers: mingw, digitalmars and ms toolkit 2003.
My question is:
If i compile wxwidgets with dm for example, will all those *.lib work with mingw or ms toolkit too?
unfortunately no - you have to build wxWidgets for each compiler separately

QuoteActually i've got a second question too. When i compile wxwidgets with dm, why it build it in debug mode(extra d in file names).
Command i used:
make -f makefile.dmc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=1 VENDOR=cb
you need the cd-version of DM which includes smake with which you can build wxWidgets in different flavours.
the make util supplied in the free version of DM is somewhat limited and doesn't support all options.
you only can build a static debug build of wxWidgtes with make if you are not editing your own modified make-files...

Priit

Thanks for your answer.

Coming back to building wxwidgets. Which compiler is the best to develop wx programs under windows xp (compiling/linking time, filesize etc).
I know mingw is the slowest and produces biggest executable size. I've used mingw with dev-cpp, but is there any difference compared to mingw vs toolkit 2003 or mingw vs dm.

tiwag

for my own projects i use DM (i've bought the CD) because it's really fast and has a good debugger

MinGW gcc has it's drawbacks as you said, but also has its advantages - i like using it too.

  • gcc's link-time can drastically be reduced if using a dll-version of wxWidgets (build with make option SHARE=1)
    and use WXUSINGDLL when compiling your application.