|
Boost Users : |
From: aegp2002 (adalbert.perbandt_at_[hidden])
Date: 2002-07-16 08:00:06
Hi there,
I'm a new user of the boost library. I want to use the Boost Graph
Library (BGL). For this I downloaded the complete boost package from
www.boost.org (boost_all.tar.gz). It is Boost v. 1.28.0.
I uncompressed and unpacked the stuff into a directory. Then I created
a simple example program to play around with BGL. I ran into trouble
when I tried to compile the code. I'm using gcc 2.95.2 on SPARC Sun
Solaris 2.7. With the "-pedantic" option given I get this failure:
In file included from
../../../boost_1_28_0/boost/detail/numeric_traits.hpp:69,
from
../../../boost_1_28_0/boost/counting_iterator.hpp:57,
from
../../../boost_1_28_0/boost/pending/integer_range.hpp:15,
from
../../../boost_1_28_0/boost/graph/detail/adjacency_list.hpp:34,
from
../../../boost_1_28_0/boost/graph/adjacency_list.hpp:293,
from nd_patch.C:21:
../../../boost_1_28_0/boost/cstdint.hpp:202: too many `l's in integer
constant
../../../boost_1_28_0/boost/cstdint.hpp:205: #error defaults not
correct; you must hand modify boost/cstdint.hpp
*** Error code 1
Without the -pedantic option everything works fine. As far as I
understand I cannot use the option anymore for code that references
BGL #includes. Is this a known problem and is there -- maybe -- a
workaround?
I'd like to use -pedantic because it helps me write standard
conformant code.
Regards,
Adalbert
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net