Mail Archives: cygwin/1996/12/23/12:38:00
I'm relatively new to GNU C++ and Cygwin32, so please forgive me if I
am asking a stupid question.
How do you prevent Windows (I am using Windows 95 with B17.1) from
opening an MS-DOS Window everytime I run my application?
Here's a test application:
// test.c
#include <windows.h>
int main(void)
{
MessageBox(NULL, "Hello World!\nDo you like this box?",
"Hello!", MB_YESNO | MB_ICONEXCLAMATION);
return 0;
}
And how do you specify which libraries should NOT be linked to the
program?
I run gcc with this set of options:
gcc test.c -luser32 -otest.exe
The resulting .exe file is something about 250k big, which seems a
little much for me... What is all that stuff?
Any help will be greatly appreciated, thanks in advance,
Joachim
*** "God does not play dice with the Universe" - Albert Einstein ***
*** "God not only plays dice, but sometimes ***
*** He throws them where they cannot be seen" - Stephen Hawking ***
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -