From: Ann Cantelow <cantelow () athena ! csdco ! com>
To: tru64-unix-managers
Subject: Problems with libg++ compile on 4.0D
Date: Thu, 12 Mar 1998 19:24:00 +0000 [thread overview]
Message-ID: <96078701111418.tru64-unix-managers.marc@archive.invalid> (raw)
Hi. I'm trying to compile libg++ 2.8.0 after our upgrade to 4.0D and I'm
running into this error:
In file included from fstream.h:30,
from fstream.cc:34:
iostream.h:92: parse error before `__extension__'
iostream.h:210: parse error before `__extension__'
*** Exit 1
Stop.
*** Exit 1
Stop.
Has anyone seen this? I can't seem to find anything in the archives
mentioning this problem.
The libio/iostream.h file has this code in it leading up to line 92:
ostream& write(const char *s, streamsize n);
ostream& write(const unsigned char *s, streamsize n)
{ return write((const char*)s, n);}
ostream& write(const signed char *s, streamsize n)
{ return write((const char*)s, n);}
ostream& write(const void *s, streamsize n)
{ return write((const char*)s, n);}
ostream& seekp(streampos);
ostream& seekp(streamoff, _seek_dir);
streampos tellp();
ostream& form(const char *format ...);
ostream& vform(const char *format, _IO_va_list args);
ostream& operator<<(char c);
ostream& operator<<(unsigned char c) { return (*this) << (char)c; }
ostream& operator<<(signed char c) { return (*this) << (char)c; }
ostream& operator<<(const char *s);
ostream& operator<<(const unsigned char *s)
{ return (*this) << (const char*)s; }
ostream& operator<<(const signed char *s)
{ return (*this) << (const char*)s; }
ostream& operator<<(const void *p);
ostream& operator<<(int n);
ostream& operator<<(unsigned int n);
ostream& operator<<(long n);
ostream& operator<<(unsigned long n);
#if defined(__GNUC__) /* This is line 92 */
__extension__ ostream& operator<<(long long n);
__extension__ ostream& operator<<(unsigned long long n);
#endif
ostream& operator<<(short n) {return operator<<((int)n);}
ostream& operator<<(unsigned short n) {return operator<<((unsigned
int)n);}
I'm afraid I'm pretty unskilled in C. Does anyone see the parse error
referred to? I'm using 'make all "CC=gcc -O2"', after successfully
installing gcc 2.7.2.3 under 4.0D, except that there was one warning of a
"type mismatch in implicit declaration for built-in function `strlen'" (or
maybe it was strcpy). Second question- should I worry about that message?
Many thanks, and I promise to summarize.
Ann Cantelow
cantelow@athena.csdco.com
reply other threads:[~1998-03-12 19:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox