This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: gcc / renderman compile question
- From: Elfyn McBratney <elfyn at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 29 Aug 2003 09:03:16 +0100
- Subject: Re: gcc / renderman compile question
- References: <5.1.0.14.2.20030828211115.00b70cc0@pop.gmx.net>
- Reply-to: cygwin at cygwin dot com
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 <http://www.cygwin.com/faq/faq_4.html#SEC103>.
-- 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/