Re: MinGW and Wx

  • From: "Marlon Brandão de Sousa" <splyt.lists@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 21 Nov 2007 09:49:27 -0200

Hello Jamal,
I don't know much about the borland free compiler. I use c++ builder
6, but I didn't try using wxwidgets with it.
Now, for another topic, you said you don't think it's a good idea to
have to suply dlls with your project, because one writting a software
in c++ should be able to deliver executables with no dependencies.
Well, what happens is that most part of c++ or C softwares do link to
a dll, the c runtime. In windows, it is the msvc .dll family of files.
If you do choose another compiler different than vc you will need to
link with its c runtime. You can choose to link the c runtime
statically, even on the wx project, by adjusting some flag I am not
sure where it is, so you don't need to supply aditional dlls with the
wx ones. But if you do so, you'll have to link all your wx based
softwares with the c runtime statically also, otherwise it would be
better to link the wx also dinamically to mingw c runtime.
The advantage of using vc is that at least some versions of microsoft
c runtimes are already suplied with windows, so one doesn't need to
redistribute it. But linking with the c runtime dinamically isn't bad,
because if every software llinked the c runtime statically then they
would be bigger and, ence all they would deppend on the c runtime, it
is better to have the c runtime as dll and let every softwares link to
it.
Now, c++ masters like Will, Ken and Sina * and others here * can
explain you why, because I can't understand ... but the fact is that
most part of projects I have seen encourage strongly people building
them to not link the c runtime statically, instead always link
dinamically with the c runtime. I noticed this kind of recomendation
in windows and in *nix projects.
hth
Marlon

2007/11/19, Jamal Mazrui <empower@xxxxxxxxx>:
> Thanks for that info, Marlon.  Can you compare MinGW and the free
> Borland compiler?
> Jamal



-- 
When you say "I wrote a program that crashed Windows," people just
stare at you blankly and say "Hey, I got those with the system, for
free."
Linus Torvalds
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: