www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/31/20:52:36

From: weiku AT UTKUX1 DOT UTK DOT EDU ("Wei Ku")
Subject: Re: Where are Reg* implemented?
31 Jul 1997 20:52:36 -0700 :
Sender: mail AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199708010304.XAA31283.cygnus.gnu-win32@solid.ssd.ornl.gov>
Original-To: <gnu-win32 AT cygnus DOT com>, "Justin Hopkins" <hop AT elwood DOT pionet DOT net>
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1008.3
X-MimeOle: Produced By Microsoft MimeOLE Engine V4.71.1008.3
Original-Sender: owner-gnu-win32 AT cygnus DOT com

 My impression ( an what I always do ) is to put the options before the
files to be compiled or linked as following:

g++ -o outfilename -O -L libpath -l lib file.c file.o ...

Sincerely,
Wei Ku

***************************************
Department of Physics and Astronomy
The University of Tennessee
1408 Circle Drive
Knoxville, Tennessee 37996-1200
weiku AT utkux DOT utcc DOT utk DOT edu
---------------------------------------
Solid State Division
Oak Ridge National Laboratory
P.O.Box 2008
Oak Ridge, TN 37831-6032
Phone: (423) 574-5795
Fax: (423) 574-4143
weiku AT solid DOT ssd DOT ornl DOT gov
***************************************

-----Original Message-----
From: Justin Hopkins <hop AT elwood DOT pionet DOT net>
To: gnu-win32 AT cygnus DOT com <gnu-win32 AT cygnus DOT com>
Date: Thursday, July 31, 1997 10:27 PM
Subject: Re: Where are Reg* implemented?



>At 01:08 AM 7/31/97 +0100, you wrote:
>>I copied this testprogram from the M$ manuals, which uses
>>the RegOpenKeyExA, RegQueryValueExA, RegQueryInfoKeyA and
>>RegCloseKey functions. They are defined in windows.h, and
>>a quick "strings -f *.a | grep Reg" finds the symbols in
>>libadvapi32.a
>>
>>gcc -ladvapi32    pdh.c   -o pdh
>
>
>Try using this command-line>
>  gcc -o pdh.exe pdh.c -ladvapi32
>
>I may be wrong, but I think gcc/g++ expect your libraries
>to be at the end of the command line invocation.
>
>Justin Hopkins
>
>-
>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".
>

-
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