From: WESTER AT ilt DOT fhg DOT de ("R. Wester") Subject: GUI and -subsystem windows 7 Apr 1997 00:31:10 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <9704070658.AA04862.cygnus.gnu-win32@ee2s01.ilt.fhg.de> Reply-To: WESTER AT ilt DOT fhg DOT de Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-ENV: (mailgw1.fhg.de) WESTER AT ilt DOT fhg DOT de -> gnu-win32 AT cygnus DOT com DOT VIA-SMTP Comments: Authenticated sender is Original-To: gnu-win32 AT cygnus DOT com X-Mailer: Pegasus Mail for Win32 (v2.42a) Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, I tried to link a GUI Application (I used the V C++ class library) with the following commands: g++ -c f.o -o f --subsystem windows -lkernel32 gcc: windows: No such file or directory g++ -c f.o -o f -subsystem windows -lkernel32 gcc: windows: No such file or directory gcc: unrecognized option -subsystem ld -o f f.o -subsystem windows -lkernel32 /cygnus/H-I386~1/BIN/LD.EXE: cannot open -kernel32: No such file or directory Can anybody give me a hint how to link succesfully. Besides this I have another problem. Why does int __stdcall *pi(int j); compile but not int * __stdcall *pi(int j); which gives the error message: syntax error before '__attribute__' I would be very appreciative for any help. Thanks in advance --Rolf wester AT ilt DOT fhg DOT de - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".