CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined symbol
Daniel...<<ios::nocreate>>
It's version 1 specific !!! (and earlier)
BCB1 -> iostream.h reads as follows:
// stream operation mode
enum open_mode {
in = 0x01, // open for reading
out = 0x02, // open for writing
ate = 0x04, // seek to eof upon original open
app = 0x08, // append mode: all additions at eof
trunc = 0x10, // truncate file if already exists
nocreate = 0x20, // open fails if file doesn't exist
noreplace= 0x40, // open fails if file already exists
binary = 0x80 // binary (not text) file
};
BCB3 -> iosbase.h reads as:
enum open_mode {
app = 0x01,
binary = 0x02,
in = 0x04,
out = 0x08,
trunc = 0x10,
ate = 0x20
};
Just thought I'd bring it up. Steve Oualline uses it in "Practical C++
Programming", Herbert Schildt uses it in "Teach Yourselt C++, 2nd Edition",
also in Jamsa's "C/C++ Programmers Bible".
And then there's ol' Kent Reisdorph, in "Teach Yourself CBuilder in 14
days", page 127 for version 1.
I noticed he left it off of the version 3 copy.
So it looks like ios::nocreate is version 1 only...<<<--- NOTE: I for one,
am gonna miss them...it's what you're used-to.
Rick Malik
rmfci@pacbell.net
"Visit the C++ Builder Hobby Pages"
http://home.pacbell.net/rmfci/bcbhp.htm
----------
> From: Daniel Hallmark <dgh@scott.net>
> To: cpb-thread@zdtips.com
> Subject: Re: undefined symbol
> Date: Thursday, July 16, 1998 1:21 PM
>
> According to the Rogue Wave iostream docs, "nocreate" is not a valid
> openmode. Stroustrup 3rd edition doesn't list a "nocreate" mode either
> and indicates that both the values and meanings of the openmodes are
> implementation-defined.
>
> Daniel Hallmark
>
>
> On Wed, 1 Jul 1998, Po Tsang Huang wrote:
>
> > The following code compiled fine in BC++5, but
> > BCB3 said "ios:nocreate" is undefined. Anybody
> > knows why?
> >
> > ifstream s( fn, ios::in | ios::nocreate );
W Komornicki's Home Page |
Main Index |
Thread Index