FW: [Opengc-devel] gcc port
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Lance W. <lan...@lo...> - 2001-10-24 12:04:07
|
This works on gcc: template< class TDataType> class ogcOrderedPair { public: ogcOrderedPair() { x = 0; y = 0; } ~ogcOrderedPair() { } TDataType x; TDataType y; }; Cheers Lance > -----Original Message----- > From: Alasdair Campbell [mailto:ala...@bt...] > Sent: 20 October 2001 19:58 > To: ope...@li... > Subject: [Opengc-devel] gcc port > > > I read Damian's interesting stuff in Glightgear-devel and > have got quite > interested. I stumbled at the first fence with the following error: > > In file included from ogcRenderWindow.h:14, > from ogcAppObject.h:22, > from main.cpp:13: > ogcOrderedPair.h:22: parse error before `;' > ogcOrderedPair.h:25: parse error before `;' > > Found the following on > http://www.cs.rpi.edu/projects/STL/htdocs/stl.html > > "..... > Compiling programs that use STL > > STL makes very aggressive use of the template feature of > C++, and currently > only a few compilers are capable of compiling programs that use STL. > Unfortunately these do not include the GNU g++ compiler or > the SUN CC > compiler. " > > Does this mean we can't use gcc to compile opengc? > > Or has John got around the problem with ogcOrderedPair ? I am > a C++ novice, > so not so clued up on templates. I am using gcc 2.95.2.1 > > -- > Kind Regards, > > Alasdair Campbell > > > _______________________________________________ > Opengc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opengc-devel > **************************************************************************** LOGICSCOPE REALISATIONS LTD, 64 Great Eastern St, London EC2A 3QR The information contained in this document is intended only for the addressee.It may contain confidential and/or legally privileged material.You may not review, retransmit, disseminate, publish or otherwise use or rely on the information in this document unless you are its intended recipient.If you have received this document in error, Please contact the sender and delete all copies of this material. |