delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/08/21:16:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <grenoml AT yahoo DOT com>
Subject: W32Api: libsetupapi: undefined ref: InstallHinfSection(...)@16
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019