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: <003601c24854$83a5f760$ce113e9b@LSIL.COM> From: "Phil Dempster" To: Subject: Re: w32api: Typo in commctl.h Date: Tue, 20 Aug 2002 15:18:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > I've encountered various 'undefined reference' errors, for example > InitCommonControls. I'm passing -lcomctl32 (since nm -A /usr/lib/w32api/*.a > | grep InitComm indicates that is where it resides), but I think the issue > is to do with the @... > > main.o(.text+0x2c3):main.cpp: undefined reference to `InitCommonControls AT 0' User error at line 2 -- I was passing the -lcomctl32 before the object files on the linker command line. -- 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/