This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: success with --subsystem,windows and all that: the definitive answer


I had the EXACT same problems but I figured it out(before this post).  For the
-mwindows problem here goes:(comments in brackets)

gcc -c DemoProg.cpp -o DemoProg.o[ENTER][NOTE:YOU CAN TO *.O, *.OBJ]
      [-C TELLS IT TO COMPILE TO AN OBJECT FILE]

gcc -o DemoProg.exe DemoProg.o -mwindows[you may also manually link stuff such
as comctl32, cmndlg32(for common controls and dialogs) -lcomctl32 -lcomdlg32
DO NOT, REPEAT DO NOT LINK KERNAL32 IF YOU DO -MWINDOWS!!!!!]

Hope this helps,
Jason
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]