SCIENTIFIC-LINUX-USERS Archives

June 2005

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Robert Haines <[log in to unmask]>
Reply To:
Robert Haines <[log in to unmask]>
Date:
Fri, 10 Jun 2005 10:39:43 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Hi all,

I have some code that fails to compile when pulling in standard include 
files. Here is an example:

$ make
g++ -W -fexceptions -O2 -DNDEBUG -Dlinux -Iinclude -o PointSnapping 
src/HapticDeviceManager.cpp src/main.cpp src/PointManager.cpp 
src/PointSnappingAfx.cpp src/PointSnappingUtil.cpp 
src/ViewApparentPointConstraint.cpp -lHD -lHDU -lSnapConstraints -lglut 
-lGL -lGLU -lraw1394 -lrt
In file included from 
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/vector:72,
                  from src/PointManager.cpp:37:
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/stl_bvector.h: 
In member function `void std::vector<bool, 
_Alloc>::_M_insert_range(std::_Bit_iterator, _ForwardIterator, 
_ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/stl_bvector.h:522: 
error: expected unqualified-id before '(' token

(There was loads more but I've snipped it)

Some searching on google has yielded the suggestion of installing the 
compat-gcc packages, but I can't find too much solid information about 
these things. Is it safe to just install them? Once I have them 
installed, how do I then use them?

If anyone has any experiences, I be pleased to hear about them!

Best wishes,
Rob

-- 
Robert Haines

Research Associate, RealityGrid          Tel. : +44 (0)161 275 6067
Manchester Computing                     Fax. : +44 (0)161 275 6800
University of Manchester                 Email: [log in to unmask]
Oxford Road                              Web  : www.realitygrid.org
Manchester, M13 9PL                           : www.sve.man.ac.uk

ATOM RSS1 RSS2