[antlr-interest] more installation problems

deshmane <deshmane at pmc-sierra.com> deshmane at pmc-sierra.com
Tue Mar 4 09:37:55 PST 2003


Hi,
First of all, thanks to Gary for your earlier reply.

Now during the "make" I am seeing compilation
errors. I am running make on SunOS5.7.
I have seen links for compiling ANTLR lib using
VC++ 6.0.
Has anyone compiled the cpp src code for SunOs
successfully ?
Any help is appreciated.

thanks,
-harsh


The relevant part:

Building ANTLRUtil.o
In file included from ANTLRUtil.cpp:9:
../antlr/IOException.hpp:25: syntax error before `;'
../antlr/IOException.hpp:27: parse error before `&'
../antlr/IOException.hpp:30: missing ';' before right brace
../antlr/IOException.hpp:32: semicolon missing after declaration of
`class antlr::IOException'
../antlr/IOException.hpp: In function `int antlr::IOException(const
string &)':
../antlr/IOException.hpp:32: base initializers not allowed for
non-member functions
../antlr/IOException.hpp:34: warning: control reaches end of non-void
function `antlr::IOException(const string &)'
../antlr/IOException.hpp: At top level:
../antlr/IOException.hpp:36: destructors must be member functions
../antlr/IOException.hpp:36: virtual outside class declaration
../antlr/IOException.hpp:41: parse error before `}'
ANTLRUtil.cpp: In function `class string antlr::read_string(istream
&)':
ANTLRUtil.cpp:54: implicit declaration of function `int
antlr::eatwhite(...)'
ANTLRUtil.cpp:54: warning: cannot pass objects of type `istream'
through `...'
ANTLRUtil.cpp:63: implicit declaration of function `int
antlr::IOException(...)'
ANTLRUtil.cpp:104: warning: cannot pass objects of type
`basic_string<char,string_char_traits<char>,__default_alloc_template<false,0>
>' through `...'
ANTLRUtil.cpp: In function `class string
antlr::read_identifier(istream &)':
ANTLRUtil.cpp:117: warning: cannot pass objects of type `istream'
through `...'
ANTLRUtil.cpp: In function `void antlr::read_AttributeNValue(istream
&, string &, string &)':
ANTLRUtil.cpp:152: implicit declaration of function `int
antlr::read_identifier(...)'
ANTLRUtil.cpp:152: warning: cannot pass objects of type `istream'
through `...'
ANTLRUtil.cpp:156: implicit declaration of function `int
antlr::read_string(...)'
ANTLRUtil.cpp:156: warning: cannot pass objects of type `istream'
through `...'
ANTLRUtil.cpp:158: warning: cannot pass objects of type
`basic_string<char,string_char_traits<char>,__default_alloc_template<false,0>
>' through `...'
make: *** [ANTLRUtil.o] Error 1


-------------------------------------------




 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list