|
From: Benjamin L. <lin...@gm...> - 2009-09-29 18:49:06
|
Tatsuro MATSUOKA wrote: > Hello > > --- Tatsuro MATSUOKA wrote: >> In my opinion, the flag '-Wl,--subsystem,windows -mwindows' in wx-config for wxMSW is to be >> removed. >> I have posted my opinion to the wx-develop post. However at the moment, I cannot say that my >> opinion >> will be accepted. Therefore I propose the patch attached. > > My proposal was rejected by the wxWidgets developper. > > http://groups.google.co.jp/group/wx-dev/browse_thread/thread/65a3af28e9a21bca# > The flag "-mwindows" has nothing to do with whether an application is using GDI libraries or not. It specifies the type of startup code and entry point of the application. So I cannot follow the wxwidgets developers argumentation. But it's their decision to make. > However I can get useful information for disabling the the flag '-Wl,--subsystem,windows -mwindows': > override it by a subsequent -Wl,--subsequent,console. I am sorry but this is IMO a very bad solution to take. This depends on the order of arguments on the command line, is not portable and depends no binutils' actual interpretation of such a double-specfication. And it is simply wrong. An application is either a GUI-subsystem application or a console-subsystem application. If it's not a GUI application, one shouldn't say so in the first place and not change one's mind halfway through. It's not a clean method, IMO benjamin |