This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Win32 aPI calls at a GUI Application
- To: gnu-win32 at cygnus dot com
- Subject: Win32 aPI calls at a GUI Application
- From: gudeads at t-online dot de (Martin Bachem)
- Date: Wed, 12 Aug 1998 14:25:07 +0200
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.RedOx@netcologne.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@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@cygnus.com" with one line of text: "help".