Mail Archives: cygwin/1997/07/30/18:47:55
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 AT 20'
C:\tmp\cc0012571.o(.text+0x14a):pdh.c: undefined reference to
`RegQueryValueExA AT 24'
C:\tmp\cc0012571.o(.text+0x153):pdh.c: undefined reference to
`RegCloseKey AT 4'
C:\tmp\cc0012571.o(.text+0x186):pdh.c: undefined reference to
`RegOpenKeyExA AT 20'
C:\tmp\cc0012571.o(.text+0x1a7):pdh.c: undefined reference to
`RegQueryInfoKeyA AT 48'
C:\tmp\cc0012571.o(.text+0x1db):pdh.c: undefined reference to
`RegQueryValueExA AT 24'
C:\tmp\cc0012571.o(.text+0x2d1):pdh.c: undefined reference to
`RegQueryValueExA AT 24'
make: *** [pdh] Error 1
What am I missing??
--
Rolf Welde Skeie Senior Design Engineer =+=
__mailto:rws AT scali DOT 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 AT cygnus DOT com" with one line of text: "help".
- Raw text -