This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Where are Reg* implemented?
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>
- Subject: Where are Reg* implemented?
- From: Rolf Welde Skeie <rws at inko dot no>
- Date: Thu, 31 Jul 1997 01:08:37 +0100
- Organization: Scali AS
- Reply-To: rws at inko dot no
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
C:\tmp\cc0012571.o(.text+0x129):pdh.c: undefined reference to
`RegOpenKeyExA@20'
C:\tmp\cc0012571.o(.text+0x14a):pdh.c: undefined reference to
`RegQueryValueExA@24'
C:\tmp\cc0012571.o(.text+0x153):pdh.c: undefined reference to
`RegCloseKey@4'
C:\tmp\cc0012571.o(.text+0x186):pdh.c: undefined reference to
`RegOpenKeyExA@20'
C:\tmp\cc0012571.o(.text+0x1a7):pdh.c: undefined reference to
`RegQueryInfoKeyA@48'
C:\tmp\cc0012571.o(.text+0x1db):pdh.c: undefined reference to
`RegQueryValueExA@24'
C:\tmp\cc0012571.o(.text+0x2d1):pdh.c: undefined reference to
`RegQueryValueExA@24'
make: *** [pdh] Error 1
What am I missing??
--
Rolf Welde Skeie Senior Design Engineer =+=
__mailto:rws@scali.no_____http://www.scali.com___====+====__
Tel +47 6384 6700 Scali AS ====+====
Fax +47 6384 4005 Hvamstubben 17 ====+====
Home +44 181 946 0650 2013 Skjetten =+=
Mob +47 9095 4406 NORWAY o==V==o
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".