Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020709011521.94916.qmail@web14403.mail.yahoo.com> Date: Mon, 8 Jul 2002 18:15:21 -0700 (PDT) From: Gerald Reno Subject: W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16 To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/