* Problems with libg++ compile on 4.0D
@ 1998-03-12 19:24 Ann Cantelow
0 siblings, 0 replies; only message in thread
From: Ann Cantelow @ 1998-03-12 19:24 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-03-12 19:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-12 19:24 Problems with libg++ compile on 4.0D Ann Cantelow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox