Boost logo

Boost :

From: troy d. straszheim (troy_at_[hidden])
Date: 2008-05-29 15:02:36


Hartmut Kaiser wrote:
> Troy,
>
>>> What problem have you hit?
>> Here's the error:
>>
>> gfilt -o example4 example4.cpp -I ../boost/trunk -lstdc++
>
> Hold on. Is it just lex/example4.cpp failing? It does compile for me! Did
> you change anything?

I sure hope not. Before I ask for your time I triple-check everything.

I see that Maik gets the same error (thanks Maik, that does indeed help);
here's a transcript:

troy_at_uranium:~/Projects/boost/trunk
% gcc --version
gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

troy_at_uranium:~/Projects/boost/trunk
% svn info
Path: .
URL: https://svn.boost.org/svn/boost/trunk
Repository Root: https://svn.boost.org/svn/boost
Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405
Revision: 45896
Node Kind: directory
Schedule: normal
Last Changed Author: bemandawes
Last Changed Rev: 45894
Last Changed Date: 2008-05-28 21:34:53 -0400 (Wed, 28 May 2008)

troy_at_uranium:~/Projects/boost/trunk
% svn update
At revision 45915.

troy_at_uranium:~/Projects/boost/trunk
% svn status

troy_at_uranium:~/Projects/boost/trunk
% cd libs/spirit/example/lex

troy_at_uranium:~/Projects/boost/trunk/libs/spirit/example/lex
% for e in example?.cpp
do
echo ----- $e ----- ; gcc -o $e.out $e -I . -I ../../../.. -lstdc++ 2>&1 | tail -2
done
----- example1.cpp -----
----- example2.cpp -----
----- example3.cpp -----
----- example4.cpp -----
../../../../boost/spirit/home/qi/detail/assign_to.hpp:27: error: functional cast expression list treated as compound expression
../../../../boost/spirit/home/qi/detail/assign_to.hpp:27: error: invalid cast from type 'const __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' to type 'unsigned int'
----- example5.cpp -----
../../../../boost/spirit/home/qi/detail/assign_to.hpp:27: error: functional cast expression list treated as compound expression
../../../../boost/spirit/home/qi/detail/assign_to.hpp:27: error: invalid cast from type 'const __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' to type 'unsigned int'
----- example6.cpp -----
../../../../boost/spirit/home/qi/detail/assign_to.hpp:27: error: functional cast expression list treated as compound expression
../../../../boost/spirit/home/qi/detail/assign_to.hpp:27: error: invalid cast from type 'const __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' to type 'unsigned int'

I get identical errors w/ gcc-4.1. thanks again for having a look at this. I'm still
prodding at it.

Best,

-t


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk