This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16
- From: Gerald Reno <grenoml at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 8 Jul 2002 18:15:21 -0700 (PDT)
- Subject: W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16
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/