This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]