From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11726 invoked by alias); 29 Aug 2003 08:00:32 -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 11718 invoked from network); 29 Aug 2003 08:00:31 -0000 Received: from unknown (HELO cmailg2.svr.pol.co.uk) (195.92.195.172) by sources.redhat.com with SMTP; 29 Aug 2003 08:00:31 -0000 Received: from modem-1272.bonobo.dialup.pol.co.uk ([217.134.52.248] helo=elfyn.emcb.co.uk) by cmailg2.svr.pol.co.uk with smtp (Exim 4.14) id 19seBK-00071n-LW for cygwin@cygwin.com; Fri, 29 Aug 2003 09:00:31 +0100 Received: by elfyn.emcb.co.uk (sSMTP sendmail emulation); Fri, 29 Aug 2003 09:03:16 +0100 Date: Fri, 29 Aug 2003 09:15:00 -0000 From: Elfyn McBratney To: cygwin@cygwin.com Subject: Re: gcc / renderman compile question Message-ID: <20030829080316.GD614@emcb.co.uk> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5.1.0.14.2.20030828211115.00b70cc0@pop.gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20030828211115.00b70cc0@pop.gmx.net> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-08/txt/msg01499.txt.bz2 Dean Strotz wrote: > hello everybody. i am trying slowly but steadily to switch from microsoft > visual studio to gcc, but i am having some issues. > as i try to compile my light.c example with gcc with the mentioned options, > i get the following errors. > can anybody tell my what i do wrong or do not set as option or else whats > going on. > the idea is to include ri.h of C:\BMRT2.2\include and link it against > libribout.lib the executable will then be able to generate rib code from c > code. > > [...] > C:\Documents and Settings\Dean\Desktop\renderman essential\trials>gcc > light.c -I > C:\BMRT2.6\include C:\BMRT2.6\lib\libribout.lib -o light.exe > > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/ribegend.obj)(.text+0x6):src\lib > ri3\ribegen: undefined reference to `__chkstk' > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rigeom.obj)(.text+0x6):src\libri > 3\rigeom.: undefined reference to `__chkstk' > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rigeom.obj)(.text+0x6):src\libri > 3\rigeom.: undefined reference to `__chkstk' > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rigeom.obj)(.text+0x6):src\libri > 3\rigeom.: undefined reference to `__chkstk' > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rigeom.obj)(.text+0x6):src\libri > 3\rigeom.: undefined reference to `__chkstk' > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rigeom.obj)(.text+0x6):src\libri > 3\rigeom.: more undefined references to `__chkstk' follow > C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribbegin.obj)(.text+0x3):src\ > libribout\ribb: undefined reference to `??2@YAPAXI@Z' I'm guessing from the above that this is a C++ .lib? You won't be able to use this .lib in gcc as they use different name mangling schemes. Either way you should take a look at the FAQ entry entitled "How do I link against .lib files?" which is located here . -- Elfyn -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/