|
Boost Users : |
Subject: Re: [Boost-users] boost/numeric/ublas/matrix_sparse.hpp does not play well with RICE
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-20 18:47:26
AMDG
John O. Woods wrote:
> I posted earlier today, and I think now that the problem might not be RICE
> at all. I just tried to compile something that I *know* should compile
> properly, which does not use RICE, and it didn't work with a *different* boost
> library (in this case <boost/unordered_map.hpp>).
>
> I'm not really sure how to troubleshoot this. I know I upgraded recently
> from boost 1.41 to 1.43, but I can't see how that would be the issue.
> Perhaps I somehow have multiple versions of boost hidden here and there and
> it's trying to use the headers from one but libraries from another?
>
> For example, compiling this file:
>
> #include <boost/unordered_map.hpp>
> int main() { return 0; }
>
>
> Gives these errors:
>
> $ g++ -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -D_FILE_OFFSET_BITS=64
> -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -g -c main.cppIn file
> included from /usr/local/include/boost/unordered/detail/equivalent.hpp:11,
> from
> /usr/local/include/boost/unordered/unordered_map.hpp:19,
> from /usr/local/include/boost/unordered_map.hpp:16,
> from main.cpp:4:
> /usr/local/include/boost/unordered/detail/extract_key.hpp:31: error:
> template argument required for struct set_extractor
What versions of gcc are you using?
My best guess is that there's a macro problem.
Try looking at the preprocessor output.
In Christ,
Steven Watanabe
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