delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/03/18:10:51.1

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: EGCS-Mingw32 Win32
3 Sep 1998 18:10:51 -0700 :
Message-ID: <Pine.SUN.3.93.980902115957.6831A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <199809012215 DOT PAA19260 AT cygnus DOT com>
Mime-Version: 1.0
To: Paul Garceau <pgarceau AT teleport DOT com>
Cc: gnu-win32 AT cygnus DOT com

On Tue, 1 Sep 1998, Paul Garceau wrote:

> Greetings,
> 
> 	Just a quick question -- and may be a dumb one...
> 
> 	Under EGCS-Mingw32, why is it necessary to add a -l reference for 
> User32 for a command such as:
> 
> 	gcc test.c -o test.exe
> 
>        in order to generate a successful link?

Paul,

Only if you refer to symbols defined in user32, otherwise no need. Since I
don't know what's in test.c, I can't really provide an informative answer.

Can you send me the following:
  
  1. testcase source file
  2. output of the build:
     
     % gcc -v test.c -o test.exe

Thanks.
Mumit


-
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