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]

GUI and -subsystem windows


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@ilt.fhg.de

-
For help on using this list, 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]