From: rws AT inko DOT no (Rolf Welde Skeie) Subject: Where are Reg* implemented? 30 Jul 1997 18:47:55 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33DFD785.953A1C1.cygnus.gnu-win32@scali.no> Reply-To: rws AT inko DOT no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.0b5 [en] (WinNT; I) Original-To: "gnu-win32 AT cygnus DOT com" X-Priority: 3 (Normal) Original-Sender: owner-gnu-win32 AT cygnus DOT com 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".