On Jun 8, 2010, at 11:06, Gabriele Kahlout wrote:

> Well, I had lost interest until compiling the following project gives the 
> following:
> http://code.google.com/p/sscompiler/source/browse/#svn/trunk
> 
> In file included from /usr/include/c++/4.2.1/bits/char_traits.h:46,
>                  from /usr/include/c++/4.2.1/ios:45,
>                  from /usr/include/c++/4.2.1/ostream:45,
>                  from /usr/include/c++/4.2.1/iostream:45,
>                  from semantics.h:13,
>                  from yacc.y:18:
> /usr/include/c++/4.2.1/bits/stl_algobase.h:771: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/stl_algobase.h:804: error: expected 
> unqualified-id before numeric constant
> In file included from /usr/include/c++/4.2.1/string:53,
>                  from /usr/include/c++/4.2.1/bits/locale_classes.h:47,
>                  from /usr/include/c++/4.2.1/bits/ios_base.h:47,
>                  from /usr/include/c++/4.2.1/ios:48,
>                  from /usr/include/c++/4.2.1/ostream:45,
>                  from /usr/include/c++/4.2.1/iostream:45,
>                  from semantics.h:13,
>                  from yacc.y:18:
> /usr/include/c++/4.2.1/bits/stl_function.h:134: error: expected identifier 
> before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:134: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:143: error: expected identifier 
> before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:143: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:214: error: expected identifier 
> before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:214: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:223: error: expected identifier 
> before numeric constant
> /usr/include/c++/4.2.1/bits/stl_function.h:223: error: expected 
> unqualified-id before numeric constant
> In file included from /usr/include/c++/4.2.1/string:54,
>                  from /usr/include/c++/4.2.1/bits/locale_classes.h:47,
>                  from /usr/include/c++/4.2.1/bits/ios_base.h:47,
>                  from /usr/include/c++/4.2.1/ios:48,
>                  from /usr/include/c++/4.2.1/ostream:45,
>                  from /usr/include/c++/4.2.1/iostream:45,
>                  from semantics.h:13,
>                  from yacc.y:18:
> /usr/include/c++/4.2.1/bits/basic_string.h: In member function ‘bool 
> std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*) const’:
> /usr/include/c++/4.2.1/bits/basic_string.h:334: error: expected 
> primary-expression before ‘const’
> /usr/include/c++/4.2.1/bits/basic_string.h:334: error: expected `)' before 
> ‘const’
> In file included from /usr/include/c++/4.2.1/bits/basic_ios.h:41,
>                  from /usr/include/c++/4.2.1/ios:50,
>                  from /usr/include/c++/4.2.1/ostream:45,
>                  from /usr/include/c++/4.2.1/iostream:45,
>                  from semantics.h:13,
>                  from yacc.y:18:
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h: At global scope:
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h:159: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h: In function ‘bool 
> std::operator==(const std::istreambuf_iterator<_CharT, _Traits>&, const 
> std::istreambuf_iterator<_CharT, _Traits>&)’:
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h:197: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h:197: error: expected ‘;’ 
> before numeric constant
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h: In function ‘bool 
> std::operator!=(const std::istreambuf_iterator<_CharT, _Traits>&, const 
> std::istreambuf_iterator<_CharT, _Traits>&)’:
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h:203: error: expected 
> unqualified-id before numeric constant
> /usr/include/c++/4.2.1/bits/streambuf_iterator.h:203: error: expected ‘;’ 
> before numeric constant
> make: *** [all] Error 1
> 
> 
> where the same project compiles well under linux g++ 4.4.1 . Is this a 
> problem difference between the compilers? I doubt, but..

I don't know, but if you install the gcc44 port and try using that compiler and 
see if you get the same error, then you'll know. :)


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to