🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #607

I upgraded and my project no longer builds!

#607
From: Dave
Date: Fri, 06 May 2005 16:20
26 lines
2229 bytes
I upgraded from build 10.157 to build 10.166. Before the upgade the
following code segment compiled just fine.

. . .

ifstream strmIn(m_sImageFile.c_str(), ios::in | ios::binary);
strmIn.seekg(0, ios::end);
int nSize = strmIn.tellg()/1024;
strmIn.close();

...

After the upgrade I am getting some rather odd error messages (the first
error message refers to the last line of code above):

[C++ Error] files.cpp(1498): E2316 '_close' is not a member of 'ifstream'
[C++ Error] files.cpp(1560): E2316 '_close' is not a member of 'ifstream'
[C++ Error] files.cpp(1596): E2316 '_read' is not a member of 'ifstream'
[C++ Error] files.cpp(1602): E2316 '_read' is not a member of 'ifstream'
[C++ Error] files.cpp(1605): E2316 '_close' is not a member of 'ifstream'
[C++ Error] files.cpp(2223): E2316 '_open' is not a member of 'ifstream'
[C++ Error] files.cpp(2229): E2316 '_read' is not a member of 'ifstream'
[C++ Error] files.cpp(2230): E2316 '_close' is not a member of 'ifstream'

Of course these error messages make no sense since all of these are indeed
member functions of the class. Any ideas on how to fix this??
Technical Details
Message-ID: <427b98f7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,9f6d9b1eb44a3fb5,start
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Dave" <dave.gilchrist@gmail.com>
From: "Dave" <dave.gilchrist@gmail.com>
Newsgroups: borland.public.cppbuilder.upgrade
Subject: I upgraded and my project  no longer builds!
Date: Fri, 6 May 2005 09:20:44 -0700
Lines: 28
Organization: Gilchrist
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 208.145.131.10
Message-ID: <427b98f7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115396343 208.145.131.10 (6 May 2005 09:19:03 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeder.wxs.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail