delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/05/17:36:17

From: curtis_c AT lxe DOT com (Curtis, Craig M.)
Subject: MINGW32 Question on test.c
5 Oct 1998 17:36:17 -0700 :
Message-ID: <c=US%a=_%p=Electromagnetic_%l=NT_EXLXE-981005122330Z-11831.cygnus.gnu-win32@nt_exems.elmg.com>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

I tried compiling the test.c sample file that came in the sample zip
file using two methods.  I used the jamfile with jam and it worked fine,
by allowing me to type in a string to be output in the messagebox.  But
if I try compiling it using the method outlined in the tutorial, it does
not allow me to enter a string at the console and it displays a
messagebox with garbage in it.

The commands I entered in when it did not work are as follows:
gcc -c test.o test.c
gcc -o test.exe test.o -mwindows

Is there some special mode, model, or library I need to link with to
make it work when typing it in by hand?

Thanks,
>Craig Curtis
-
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019