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 Date: Fri, 29 Aug 2003 09:03:16 +0100 From: Elfyn McBratney To: cygwin AT cygwin DOT com Subject: Re: gcc / renderman compile question Message-ID: <20030829080316.GD614@emcb.co.uk> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20030828211115 DOT 00b70cc0 AT pop DOT gmx DOT 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 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 AT 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/