This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.3.1 on Solaris 2.6



Hi,
I apologize for the incomplete mails. There seems to be some problem with this email service I suppose. Anyway, please find the complete mail below. I hope it works this time around...


Iam trying to install gcc 3.3.1 on Solaris sparc 2.6 platform. Since I dont have root priveleges, I downloaded the source and built it using the following commands,
(Iam running GNU binutils ver 2.14)


/home/vseshan/gcc-3.3.1/configure --prefix=/home/vseshan/local/gcc-3.3.1/ --with-local-prefix=/home/vseshan/local --with-as=/home/vseshan/local/bin/as--with-gnu-as --with-ld=/home/vseshan/local/ld --with-gnu-ld --disable-multilib --enable-threads --enable-languages=c,c++,java

make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap

I do not have a /usr/local/include directory, that was the reason for giving the "with-local-prefix" option to a folder which has some packages (binutils and other stuff) installed.

The build completed successfully.

I set the following env variables,
GCC_EXEC_PREFIX=/home/vseshan/local/gcc-3.3.1/lib/gcc-lib
LD_LIBRARY_PATH=/home/vseshan/local/gcc-3.3.1/lib

Iam able to compile C programs without any problem. But g++ is giving me a lot of trouble. When I try to compile the following simple c++ program,

#include <iostream>
using namespace std;

int main()
{
 cout<<"Hello world"<<endl;
 return 0;
}

I have attached the error log at the end of the mail. Can anyone tell me if Iam doing anything incorrectly or should I be doing something more (like setting some more env variables??)

Thanks in advance
Vijay

Error log::
-----------
g++ test.cc

In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iosfwd:49,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:44,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/fpos.h:120: error: `
mbstate_t' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/fpos.h:120: error: template
argument 1 is invalid
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:46,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/char_traits.h:69: error: parse
error before `;' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/char_traits.h:123: error: parse
error before `;' token
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:48,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:58:34: macro "isspace" passed 2 arguments, but takes just 1
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:48,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:58: error: `
std::isspace' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:58: error: template
declaration of `bool std::isspace'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:62:34: macro "isprint" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:62: error: `
std::isprint' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:62: error: template
declaration of `bool std::isprint'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:66:34: macro "iscntrl" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:66: error: `
std::iscntrl' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:66: error: template
declaration of `bool std::iscntrl'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:70:34: macro "isupper" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:70: error: `
std::isupper' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:70: error: template
declaration of `bool std::isupper'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:74:34: macro "islower" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:74: error: `
std::islower' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:74: error: template
declaration of `bool std::islower'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:78:34: macro "isalpha" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:78: error: `
std::isalpha' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:78: error: template
declaration of `bool std::isalpha'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:82:34: macro "isdigit" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:82: error: `
std::isdigit' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:82: error: template
declaration of `bool std::isdigit'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:86:34: macro "ispunct" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:86: error: `
std::ispunct' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:86: error: template
declaration of `bool std::ispunct'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:90:35: macro "isxdigit" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:90: error: `
std::isxdigit' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:90: error: template
declaration of `bool std::isxdigit'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:94:34: macro "isalnum" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:94: error: `
std::isalnum' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:94: error: template
declaration of `bool std::isalnum'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:98:34: macro "isgraph" passed 2 arguments, but takes just 1
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:98: error: `
std::isgraph' declared as an `inline' variable
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:98: error: template
declaration of `bool std::isgraph'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:124: error: `
mbstate_t' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/localefwd.h:124: error: template
argument 3 is invalid
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:49,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:165: error: parse
error before `{' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:175: error: destructor
`failure' must match class name `ios_base'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:363: error: parse
error before `protected'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:383: error: syntax
error before `;' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:387: error: parse
error before `,' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:389: error: missing
';' before right brace
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:391: error: semicolon
missing after declaration of `std::_Callback_list'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:392: error: ISO
C++ forbids defining types within return type
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:392: error: two
or more data types in declaration of `_M_add_reference'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:392: error: semicolon
missing after declaration of `struct std::_Callback_list'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h: In function `
int std::_M_add_reference()':
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:392: error: `
_M_refcount' undeclared (first use this function)
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:392: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h: At global
scope:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:399: error: syntax
error before `*' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:402: error: `
event' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:402: error: parse
error before `)' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:431: error: '
locale' is used as a type, but is not defined as a type.
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:436: error: parse
error before `public'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:447: error: destructors
must be member functions
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h: In function `
bool _S_initialized()':
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:459: error: `
_S_ios_base_init' undeclared (first use this function)
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h: At global
scope:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:461: error: parse
error before `private'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:464: error: parse
error before `}' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:472: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:482: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:485: error: `
__fmtfl' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:486: error: parse
error before `return'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:498: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:501: error: syntax
error before `|=' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:515: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:518: error: syntax
error before `&=' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:519: error: syntax
error before `|=' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:530: error: `
fmtflags' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:530: error: parse
error before `)' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h: In function `
void unsetf(...)':
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:530: error: `
__mask' undeclared (first use this function)
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h: At global
scope:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:542: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:550: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:553: error: `
__prec' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:554: error: parse
error before `return'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:564: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:572: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:575: error: `
__wide' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:576: error: parse
error before `return'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:603: error: parse
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:614: error: syntax
error before `(' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:623: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:660: error: destructors
must be member functions
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:662: error: parse
error before `protected'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:670: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:677: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:685: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:693: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:701: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:709: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:717: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:725: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:733: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:741: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:749: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:757: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:765: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:773: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:781: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:790: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:798: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:806: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:815: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:823: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:831: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:840: error: syntax
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/ios_base.h:848: error: syntax
error before `&' token
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:50,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:218: error: syntax
error before `;' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:225: error: data
member `_M_buf_locale' cannot be a member template
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:232: error: data
member `_M_buf_locale_init' cannot be a member template
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:245: error: default
argument for template parameter for class enclosing `std::_S_pback_size'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:245: error: template
definition of non-template `const size_t std::_S_pback_size'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:411: error: no type `
seekdir' in `std::ios_base'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:411: error: parse
error before `,' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:413: error: template
definition of non-template `typename _Traits::pos_type
std::ios_base::pubseekoff(...)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:417: error: no type `
openmode' in `std::ios_base'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:417: error: parse
error before `=' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:418: error: template
definition of non-template `typename _Traits::pos_type
std::ios_base::pubseekpos(...)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:724: error: no type `
seekdir' in `std::ios_base'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:725: error: no type `
openmode' in `std::ios_base'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:726: error: template
definition of non-template `virtual typename _Traits::pos_type
std::ios_base::seekoff(typename _Traits::off_type)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:737: error: no type `
openmode' in `std::ios_base'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:738: error: template
definition of non-template `virtual typename _Traits::pos_type
std::ios_base::seekpos(typename _Traits::pos_type)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:413: error: template
definition of non-template `typename _Traits::pos_type
std::basic_streambuf<_CharT, _Traits>::pubseekoff(...)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:418: error: template
definition of non-template `typename _Traits::pos_type
std::basic_streambuf<_CharT, _Traits>::pubseekpos(...)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf: In constructor `
std::basic_streambuf<_CharT, _Traits>::basic_streambuf()':
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:580: error: class `
std::basic_streambuf<_CharT, _Traits>' does not have any field named `
_M_mode'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:580: error: class `
std::basic_streambuf<_CharT, _Traits>' does not have any field named `
_M_buf_locale'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf: At global scope:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:726: error: template
definition of non-template `virtual typename _Traits::pos_type
std::basic_streambuf<_CharT, _Traits>::seekoff(typename _Traits::off_type)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:738: error: template
definition of non-template `virtual typename _Traits::pos_type
std::basic_streambuf<_CharT, _Traits>::seekpos(typename _Traits::pos_type)'
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/streambuf:934,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:50,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:44: error: template
definition of non-template `const size_t std::basic_streambuf<_CharT,
_Traits>::_S_pback_size'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc: In function
`streamsize std::__copy_streambufs(std::basic_ios<_CharT, _Traits>&,
std::basic_streambuf<_CharT, _Traits>*, std::basic_streambuf<_CharT,
_Traits>*)':
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:228: error: parse
error before `&' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc: At global
scope:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:234: error: parse
error before `return'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:241: error: `
basic_streambuf' is not a template
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:241: error: explicit
instantiation of non-template type `<type error>'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:244: error: explicit
instantiation of non-template `int streamsize'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf.tcc:244: error: parse
error before `(' token
In file included from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/basic_ios.h:41,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ios:51,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/ostream:45,
from /home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iostream:45,
from test.cc:1:
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:50: error: parse
error before `<' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:56: error: syntax
error before `;' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:57: error: `
_Traits' is not a class or namespace
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:57: error: `
int_type' is not a class or namespace
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:57: error: using
`typename' outside of template
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:57: error: `
_Traits' fails to be a typedef or built in type
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:58: error: `
_CharT' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:58: error: `
_Traits' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:58: error: template
argument 1 is invalid
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:58: error: template
argument 2 is invalid
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:59: error: `
_CharT' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:59: error: `
_Traits' was not declared in this scope
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:59: error: template
argument 1 is invalid
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:59: error: template
argument 2 is invalid
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:61: error: parse
error before `private'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:72: error: parse
error before `public'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h: In
function `int std::istreambuf_iterator(istream_type&)':
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: error: `
int std::istreambuf_iterator(istream_type&)' redeclared as different kind of
symbol
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iosfwd:98: error: previous
declaration of `template<class _CharT, class _Traits> class
std::istreambuf_iterator'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/iosfwd:98: error: previous
non-function declaration `template<class _CharT, class _Traits> class
std::istreambuf_iterator'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: error: conflicts
with function declaration `int std::istreambuf_iterator(istream_type&)'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: error: only
constructors take base initializers
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: error: request
for member `rdbuf' in `__s', which is of non-aggregate type `int'
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: error: `
traits_type' undeclared (first use this function)
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: error: parse
error before `::' token
/home/vseshan/local/gcc-3.3.1/include/c++/3.3.1/bits/streambuf_iterator.h:77: confused by earlier errors, bailing out



___________________________________________________ Art meets Army ; Swapna Weds Capt. Rajsekhar. Find interesting matches on Rediff Matchmaker ! Visit http://matchmaker.rediff.com?1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]