Article View: comp.sys.sgi.graphics
Article #148Re: ImageVision and g++
From: Christopher Walker
Date: Tue, 26 Jan 1993 21:18
Date: Tue, 26 Jan 1993 21:18
65 lines
3114 bytes
3114 bytes
In article <C1Grqz.n4z@dcs.ed.ac.uk>, gordonc@epcc.ed.ac.uk writes: > In article <1k1b9mINN8a6@fido.asd.sgi.com>, walker@owl.asd.sgi.com (Christopher Walker) writes: > > > > In article <C1DHGr.B00@dcs.ed.ac.uk>, gordonc@epcc.ed.ac.uk writes: > > > Sorry if this has been asked before, but can I use g++ (V2.0) to compile > > > ImageVision C++ progs, and if so, which options should I use ?? > > > > > > Any help appreciated, > > > > We've never tried.. but I strongly doubt that SGI's C++ and gnu's C++ are > > compatible. Maybe someone with more experience with g++ would know. I suspect > > that the IL would need to be recompiled with g++ and there isn't much likelihood > > of SGI supporting that.. sorry. > > > > .....ermmm, isn't the language specification for C++ fairly strict? If I were to take pieces of C code from my SGI and attempt to compile them elsewhere, I'd like to think that I wouldn't experience too much trouble :-) (also,for example, I can compile GL programs with gcc) > IL ports just fine to the other platforms we've tried. That's not the issue. The problem is in how the compilers implement various tricks.. > Incidentally, the trouble is in the linking stage. With the options, -traditional-cpp and -x c++, all is OK until link, when I get : > > gcc -x c++ -traditional-cpp -o imgcat imgcat.c++ > Like name mangling.. the names below show me that g++ mangles differently than ATT's cfront. I'm sure there are deeper problems like the layout of vtbl's and other such goodies.. in short I'd give up while your ahead :-) C++ just isn't as interoperable as you might like because of these little hacks that have been used to fool the linker (which knows nothing about overloading and class names etc.) > Undefined: > getElem__C7ilPixeli > findLink__15ilIndexableListl > _._15ilIndexableList > inList__9ilImgListP7ilImage > findImg__9ilImgListP7ilImage > firstImg__9ilImgList > lastImg__9ilImgList > nextImg__9ilImgList > resetCheck__7ilImage > __as__7ilPixelRC7ilPixel > ilDataIsSigned > setInput__7ilImagePT0i > findParent__7ilImagel > findChild__7ilImagel > _._10ilCacheImg > ilOpenImgFile > ilCreateImgFile > childResponse__7ilImagePT0 > parentResponse__7ilImagePT0 > reset__10ilCacheImg > getSubTile3D__10ilCacheImgiiiiiiPviiiiiiPC8ilConfig > setSubTile3D__10ilCacheImgiiiiiiPviiiiiiPC8ilConfig > copyTile3D__10ilCacheImgiiiiiiP7ilImageiiiPii > fillTile3D__10ilCacheImgiiiiiiPvPC8ilConfigPC6ilTile > flush__10ilCacheImg > collect: /usr/bin/ld returned 1 exit status > --- Chris Walker (x1106 or walker@sgi.com)
Technical Details
Message-ID:
<1k49rfINNeo5@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!olivea!sgigate!odin!fido!owl!walkerReferences:
<C1DHGr.B00@dcs.ed.ac.uk> <1k1b9mINN8a6@fido.asd.sgi.com> <C1Grqz.n4z@dcs.ed.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!olivea!sgigate!odin!fido!owl!walker From: walker@owl.asd.sgi.com (Christopher Walker) Newsgroups: comp.sys.sgi.graphics Subject: Re: ImageVision and g++ Message-ID: <1k49rfINNeo5@fido.asd.sgi.com> Date: 26 Jan 93 21:18:39 GMT References: <C1DHGr.B00@dcs.ed.ac.uk> <1k1b9mINN8a6@fido.asd.sgi.com> <C1Grqz.n4z@dcs.ed.ac.uk> Organization: Silicon Graphics, Inc. Mountain View, CA Lines: 65 NNTP-Posting-Host: owl.asd.sgi.com