> Richard Atterer <richard@...> writes:
> > Hi,
> > I create several programs from my sources, including a command-line
> > utility and a GUI program. A few object files are shared between
> > these, and the GUI needs -mwindows.
> > My experiments show that everything seems to work fine if the only
> > time I use -mwindows is when linking the GUI application. Is it OK
> > to use object files built without -mwindows for an -mwindows
> > executable?
> -mwindows is a link phase switch. AFAIK, it has no effect while
-mwindows, is a link phase switch. Even so, and this is afaik, whether -mwindows is
used or not does impact whether or not you can implement win32api calls within the app
An example: If your app is a WinMain() function based app, and you do not use -
mwindows, then you will see a lot of compile errors (not warnings, errors) appear.
That is because it is assumed, when -mwindows is not included in the link phase, that
you are using a standard C/C++ main() function.
Again, that is only as far as I know.