🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.graphics
4 messages
4 total messages Started by Gordon D B Cameron Sun, 24 Jan 1993 19:14
ImageVision and g++
#123
Author: Gordon D B Cameron
Date: Sun, 24 Jan 1993 19:14
11 lines
785 bytes
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,
	-G.


-- 
e|p Gordon Cameron                      |     Phone:+44 31 650 5024(Rm. 2259)
c|c Edinburgh Parallel Computing Centre |     Email: gordonc@epcc.ed.ac.uk
    oOo The University of Edinburgh oOo |    'So far so good, so now so what'
Re: ImageVision and g++
#126
Author: Christopher Walker
Date: Mon, 25 Jan 1993 18:24
14 lines
992 bytes
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.

---
Chris Walker (x1106 or walker@sgi.com)
Re: ImageVision and g++
#139
Author: Gordon D B Cameron
Date: Tue, 26 Jan 1993 13:49
56 lines
2646 bytes
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)

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

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





-- 
e|p Gordon Cameron                      |     Phone:+44 31 650 5024(Rm. 2259)
c|c Edinburgh Parallel Computing Centre |     Email: gordonc@epcc.ed.ac.uk
    oOo The University of Edinburgh oOo |    'So far so good, so now so what'
Re: ImageVision and g++
#148
Author: Christopher Walker
Date: Tue, 26 Jan 1993 21:18
65 lines
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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads