Re: Read a file line by line and write each line to a file based
on the 5th byte
* James Kanze:
On May 17, 12:26 pm, "Alf P. Steinbach" <al...@start.no> wrote:
* James Kanze:
On May 16, 4:10 pm, "Alf P. Steinbach" <al...@start.no> wrote:
* James Kanze:
[...]
Not just for reasons of having a [] which crashes. (I'm
less sure about VC++, but pre-4.0 g++ didn't have fully
standard name look-up.)
The lastest version of g++ for Windows is AFAIK 3.4.5.
Whose last version? :-)
MSys has a 4.3.0, qualified "Testing"; the last stable
version is 3.4.5, as you say, but a newer version is
available. Cygwin has 4.3.2 (plus a lot of others); I'm
unable to find any statement concerning what they consider
"stable". I don't know about the others.
But who'd want to use g++ under Windows anyway.
Anybody serious about programming.
I consider myself serious about programming, but what little
work I do under Windows is purely with VC++.
Well. It stands to reason that *someone* must be using the second most used
compiler on the platform, i.e., that your choice is not representative.
It's a good idea to have the code compile with at least two
compilers.
There's that, of course---ideally, the second compiler would be
Comeau, regardless of the platform. (Still no need for g++.)
No, don't get hung up on the "two", focus on the "at least".
Comeau tests standard-conformance only.
One main reason you need two or more compilers is that compilers aren't
standard-conforming.
Testing with Comeau only, doesn't ensure your code will work with g++.
Testing with g++ does help in that direction.
Cheers & hth.,
- Alf
--
Due to hosting requirements I need visits to <url: http://alfps.izfree.com/>.
No ads, and there is some C++ stuff! :-) Just going there is good. Linking
to it is even better! Thanks in advance!