From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30725 invoked by alias); 9 Jul 2002 01:15:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 30701 invoked from network); 9 Jul 2002 01:15:21 -0000 Received: from unknown (HELO web14403.mail.yahoo.com) (216.136.174.60) by sources.redhat.com with SMTP; 9 Jul 2002 01:15:21 -0000 Message-ID: <20020709011521.94916.qmail@web14403.mail.yahoo.com> Received: from [67.243.71.175] by web14403.mail.yahoo.com via HTTP; Mon, 08 Jul 2002 18:15:21 PDT Date: Mon, 08 Jul 2002 18:48:00 -0000 From: Gerald Reno Subject: W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16 To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00609.txt.bz2 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/