public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc / renderman compile question
@ 2003-08-29  6:46 Dean Strotz
  2003-08-29  9:15 ` Elfyn McBratney
  0 siblings, 1 reply; 2+ messages in thread
From: Dean Strotz @ 2003-08-29  6:46 UTC (permalink / raw)
  To: cygwin

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.

any help is apprechiated.
sincerely
dean



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'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rierror.obj)(.text+0x86):src\lib
ri3\rierror: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rierror.obj)(.text+0xaf):src\lib
ri3\rierror: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rierror.obj)(.text+0xd2):src\lib
ri3\rierror: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rierror.obj)(.text+0x1c5):src\li
bri3\rierror: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rierror.obj)(.text+0x1e4):src\li
bri3\rierror: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libri3/rierror.obj)(.text+0x22e):src\li
bri3\rierror: more undefined references to `__iob' follow
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x6):src\li
bribout\ribo: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x6):src\li
bribout\ribo: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x6):src\li
bribout\ribo: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x321):src\
libribout\ribo: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x379):src\
libribout\ribo: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x3bb):src\
libribout\ribo: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x3d8):src\
libribout\ribo: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x11):src\l
ibribout\ribo: undefined reference to `??3@YAXPAX@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x1f):src\l
ibribout\ribo: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribout.obj)(.text+0x3):src\li
bribout\ribo: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/declist.obj)(.text+0x32):src
\libclasses\dec: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/declist.obj)(.text+0x6e):src
\libclasses\dec: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/declist.obj)(.text+0xcb):src
\libclasses\dec: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/declist.obj)(.text+0x11):src
\libclasses\dec: undefined reference to `??3@YAXPAX@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/declist.obj)(.text+0x24e):sr
c\libclasses\dec: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribmaketx.obj)(.text+0x6):src
\libribout\ribm: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribmaketx.obj)(.text+0x6):src
\libribout\ribm: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribmaketx.obj)(.text+0x6):src
\libribout\ribm: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribmaketx.obj)(.text+0x6):src
\libribout\ribm: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: more undefined references to `__chkstk' follow
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x198):src
\libribout\ribg: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: more undefined references to `__chkstk' follow
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x86):src\
libribout\ribg: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0xa2):src\
libribout\ribg: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0xc2):src\
libribout\ribg: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x8a):src\
libribout\ribg: undefined reference to `__iob'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribgeom.obj)(.text+0x6):src\l
ibribout\ribg: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribshader.obj)(.text+0x6):src
\libribout\ribs: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribshader.obj)(.text+0x6):src
\libribout\ribs: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribshader.obj)(.text+0x6):src
\libribout\ribs: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribshader.obj)(.text+0x6):src
\libribout\ribs: undefined reference to `__chkstk'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libribout/ribshader.obj)(.text+0x6):src
\libribout\ribs: more undefined references to `__chkstk' follow
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.rdata+0x4):src\li
brend\rendin: undefined reference to `__purecall'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.rdata+0x8):src\li
brend\rendin: undefined reference to `__purecall'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.rdata+0xc):src\li
brend\rendin: undefined reference to `__purecall'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.rdata+0x10):src\l
ibrend\rendin: undefined reference to `__purecall'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.rdata+0x14):src\l
ibrend\rendin: undefined reference to `__purecall'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.rdata+0x18):src\l
ibrend\rendin: more undefined references to `__purecall' follow
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/librend/rendint.obj)(.text+0x11):src\li
brend\rendin: undefined reference to `??3@YAXPAX@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/hashtab.obj)(.text+0x11):src
\libclasses\has: undefined reference to `??3@YAXPAX@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/hashtab.obj)(.text+0x4a):src
\libclasses\has: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/hashtab.obj)(.text+0x42):src
\libclasses\has: undefined reference to `??3@YAXPAX@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x39):s
rc\libclasses\par: undefined reference to `??2@YAPAXI@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x1a):s
rc\libclasses\par: undefined reference to `??3@YAXPAX@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x13):s
rc\libclasses\par: undefined reference to `?cout@@3Vostream_withassign@@A'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x18):s
rc\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@PBD@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x1f):s
rc\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@PBD@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x26):s
rc\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@PBD@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x2d):s
rc\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@H@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x36):s
rc\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@E@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x9):sr
c\libclasses\par: undefined reference to `?cout@@3Vostream_withassign@@A'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0xe):sr
c\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@PBD@Z'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x28):s
rc\libclasses\par: undefined reference to `?cout@@3Vostream_withassign@@A'
C:\BMRT2.6\lib\libribout.lib(obj/intelnt/libclasses/paramlist.obj)(.text+0x2d):s
rc\libclasses\par: undefined reference to `??6ostream@@QAEAAV0@E@Z'
collect2: ld returned 1 exit status

C:\Documents and Settings\Dean\Desktop\renderman essential\trials>



--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc / renderman compile question
  2003-08-29  6:46 gcc / renderman compile question Dean Strotz
@ 2003-08-29  9:15 ` Elfyn McBratney
  0 siblings, 0 replies; 2+ messages in thread
From: Elfyn McBratney @ 2003-08-29  9:15 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-29  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29  6:46 gcc / renderman compile question Dean Strotz
2003-08-29  9:15 ` Elfyn McBratney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).