Mail Archives: cygwin/1998/08/12/18:32:01
Hello you out there.
A console Application (like printf("hello sucking world")) wasn't a problem, but
I want to write little Win32 Api Applications (non GUI Applications !!!)
The FAQ reports about the master option "-mwindows", but this doesn't work.
I have all environement Variables set (MAKE_MODE switched to Win32).
Is anyone there how can help me ? (I hope so ...)
ThanX for hearing me :-)
Martin
My provate EMail Adress is : DarkStar DOT RedOx AT netcologne DOT de
////////////////////////////////////////////////////////////////////////////////
d:\projekte\gnu_c>gcc TEST01.C -mwindows
cc1plus.exe: Invalid option `windows'
////////////////////////////////////////////////////////////////////////////////
d:\projekte\gnu_c>gcc TEST01.C -Wl,--subsystem,windows
/tmp/GNU_C/H-I386~1/i386-cygwin32/bin/ld.exe: warning: cannot find entry symbol
_WinMainCRTStartup; defaulting to 00401000
C:\WIN98\TEMP\cc0010001.o(.text+0x32):TEST01.cc: undefined reference to
`Message
BoxA AT 16'
////////////////////////////////////////////////////////////////////////////////
#include <winbase.h>
int WinMain(HINSTANCE hCurInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine
t nCmdShow)
{
MessageBox(0, "Gnu forever !", "Damned !!! Thos dosn't werk !!!",MB_OK);
return(1);
}
////////////////////////////////////////////////////////////////////////////////
environment variables :
MAKE_MODE=win32
CYGFS=d:/gnu_c
GCC_EXEC_PREFIX=d:\GNU_C\H-I386~1\lib\gcc-lib\
TCL_LIBRARY=\share\tcl8.0\
GDBTK_LIBRARY=d:/gnu_c/share/gdbtcl
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -