gcc / renderman compile question
Elfyn McBratney
elfyn@cygwin.com
Fri Aug 29 09:15:00 GMT 2003
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/
More information about the Cygwin
mailing list