This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> I commented out the instantiation to continue on, and found another
> problem:
>
> __basic_file::sys_open(int, enum _Ios_Openmode)':
> ../../src/basic_file.cc:74: `__testb' undeclared (first use this function)
> ../../src/basic_file.cc:74: (Each undeclared identifier is reported only
> once ../../src/basic_file.cc:74: for each function it appears in.)
>
Here's a log and patch for this problem:
ChangeLog:
* __basic_file::sys_open [O_BINARY]: Declare __testb.
*** src/basic_file.cc.orig Sat Mar 20 00:23:58 1999
--- src/basic_file.cc Mon Apr 12 15:35:32 1999
*************** namespace std {
*** 57,62 ****
--- 57,65 ----
__basic_file* __retval = NULL;
bool __testi = __mode & ios_base::in;
bool __testo = __mode & ios_base::out;
+ #ifdef O_BINARY
+ bool __testb = __mode & ios_base::binary;
+ #endif
int __p_mode = 0;
int __rw_mode = _IO_NO_READS + _IO_NO_WRITES;
---
Mark Elbrecht, snowball3@usa.net
http://snowball.digitalspace.net/