Article View: comp.sys.sgi.graphics
Article #165ImageVision and g++
From: Jody Winston
Date: Wed, 27 Jan 1993 16:03
Date: Wed, 27 Jan 1993 16:03
15 lines
1378 bytes
1378 bytes
Gordon> ....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)
Gordon> Incidentally, the trouble is in the linking stage. With the options, -traditional-cpp and -x c++, all is OK until link, when I get :
The problem is that C++ does NOT define how name mangling should be
done, how structures are laid out in memory, nor the lifespan of
temporary objects. Therefore you can't mix libraries generated by
different C++ compilers.
--
Joseph Winston jody@shell.com
...!{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!jody
Consultant to:
Shell Development Company, Bellaire Research Center
P.O. Box 481, Room 4205, Houston, TX 77001 (Voice: 713 245-7574)
Technical Details
Message-ID:
<JODY.93Jan27100301@colorado.shell.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!swrinde!gatech!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!shellgate!jodyShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.graphics Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!elroy.jpl.nasa.gov!swrinde!gatech!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!shellgate!jody From: jody@shell.com (Jody Winston) Subject: ImageVision and g++ Message-ID: <JODY.93Jan27100301@colorado.shell.com> Sender: usenet@shellgate.shellic.com (USENET News System) Organization: Shell Development Company, Bellaire Research Center, Houston, TX Date: Wed, 27 Jan 1993 16:03:01 GMT Lines: 16