* Re: W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16
@ 2002-07-08 19:04 Gerald Reno
0 siblings, 0 replies; 2+ messages in thread
From: Gerald Reno @ 2002-07-08 19:04 UTC (permalink / raw)
To: cygwin
BTW, here is the output from nm on libsetupapi.a:
$nm /usr/lib/w32api/libsetupapi.a | grep "Hinf"
00000000 T _InstallHinfSectionW@16
00000000 I __imp__InstallHinfSectionW@16
00000000 T _InstallHinfSectionA@16
00000000 I __imp__InstallHinfSectionA@16
00000000 T _InstallHinfSection@16
00000000 I __imp__InstallHinfSection@16
No symbols look like my reference.
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
* W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16
@ 2002-07-08 18:48 Gerald Reno
0 siblings, 0 replies; 2+ messages in thread
From: Gerald Reno @ 2002-07-08 18:48 UTC (permalink / raw)
To: cygwin
I am using Cygwin 1.3.10 with gcc v.2.95.3-5.
compile line:
g++ my.c -ansi -mno-cygwin -L/usr/lib/w32api
-lsetupapi -o my.exe -DDEBUG=9
I want to use the InstallHinfSection function from
libsetupapi.a. The problem I'm having is that no
matter what I always end up with an undefined
reference: Here is the output from the compile:
/cygdrive/d/DOCUME~1/greno/LOCALS~1/Temp/ccG5FWpT.o(.text+0x15a8):my.c:
undefined reference to `InstallHinfSection(HWND__ *,
HINSTANCE__ *, char const *, int)@16'
collect2: ld returned 1 exit status
make: *** [all] Error 1
What is this @16?
Here is the code:
...
extern VOID CALLBACK
InstallHinfSection(HWND,HINSTANCE,LPCTSTR,INT);
main()
{
char command[64]="DefaultInstall 132 d:\temp\my.inf"
InstallHinfSection(NULL,NULL,command,0);
}
I've tried calling InstallHinfSectionA,
_InstallHinfSectionA. Doesn't matter, still get
undefined. How do I resolve this reference?
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-09 1:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-08 19:04 W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16 Gerald Reno
-- strict thread matches above, loose matches on Subject: below --
2002-07-08 18:48 Gerald Reno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).