From: Brian Dessent <brian@de...> - 2006-02-03 00:52:24
> I'm a newbie to mingw,I just started my first windows program
> following some tutorials.In these tutorials,It mentions that EXE or
> DLL should be linked with -mwindow or -mdll option respectively,or
> else the linking will fail.I think what these options do is add some
> windows specific library to the linking,but I'm not sure.
That sounds like obsolete and bad advice. You shouldn't need to use
either of those. Link executables as "gcc obj1.o obj2.o obj3.o -o
out.exe" and link DLLs as "gcc -shared obj1.o obj2.o obj3.o -o out.dll".