


gcc 3.0 Coming Soon to a Computer Near You 19
An anonymous submitter sent in pointers to a couple of mailing list messages about the imminent release of gcc 3.0. The official word seems to be that 3.0 might be out as early as this weekend.
Here's the funny thing... (Score:4)
P.S. It's GCC 3.0, FYI.
Version number inflation (Score:2)
Uh... would it make you happy if they called it version 23.0? Other vendors increase version numbers like there is no tomorrow (makes managers happy, I think), so we should "catch up" to that silliness? What difference does it make?
just seems like more proof that the Open Source development model leads to slower release cycles
What are you smoking? Free software is in continuous release. How long has it been between versions of MS VC? Almost a year and a half now...
a never ending game of catchup
I think if you compare standards compliance, gcc ranks right up there with every other vendor.
I was going to just mod you down, but there is no "-1 duh" moderation.
Ryan T. Sammartino
This is good (Score:1)
Re:Here's the funny thing... (Score:1)
That's quite humourous...
Given that the first 'correct code' example is wrong I wouldn't put to much trust in the rest...
It is 'int main' in C++ not 'main', god damn it.
I've been using the snapshots og gcc 3.0 for a while now, precisely because it is more standards compliant.
From the C perspective, what's wrong with non C99 compliant code. People still use K&R C, because it
is more portable.
Cought by a troll (Score:1)
flame (Score:3)
Re:flame (Score:1)
Really? Where? It's not here [redhat.com].
Re:flame (Score:2)
actually... (Score:1)
I _think_ it can be either int main() or void main() or main() (which the compiler takes as void main() ).
But then I hack perl and C, not C++. :-) I'd check but I don't have a c++ compiler handy at the moment.
--
News for geeks in Austin: www.geekaustin.org [geekaustin.org]
Re:It's funny... (Score:2)
Right, because it's his project. What is your point? Anybody can fork off GCC if they wish. So what?
Since its inception in 1987 there have been 101 released versions of GCC. Microsoft since Quick C has released 11 versions counting all Visual (Quick) C and Visual C++. Counting all of Borland/Inprise's various C and C++ compilers (Turbo, Borland, Builder, OS/2, and Vision) there are 21 versions. Of course those are complete IDE's so you can't really compare them to gcc which is only a compiler. However, I think you get the point. Neither MSVC nor C++ Builder are platform indepenedent so you can throw them in the trash (what is the point of C/C++ if you can't port to a different platform).
Re:It's funny... (Score:1)
Re:actually... (Score:2)
It's always
int main()
(in C you have to do "int main(void)") or
int main(int argc, char *argv[])
(as in C).
Unlike C, you don't have to "return 0;" in C++ at the end of main.
Re:actually... (Score:2)
Umm, ok. Then why does this work:
#include <iostream>void main() {
cout << "Howdy, y'all!" << endl;
}
And that proto for main is in very widespread usage. Maybe the standard says different and it's just all the compiler makers and C++ book writers that are "wrong", heh. Maybe the compilers silently turn void return in to int return 0. Maybe C++ just sucks. ;-)
--
News for geeks in Austin: www.geekaustin.org [geekaustin.org]
Re:What about the other compilers? (Score:1)
Re:actually... (Score:1)
Try to compile that code with -Wall (with gcc) and you get:
test.cpp:3: return type for `main' changed to `int'
Re:Version number inflation (Score:1)
In particular, this reminds me of when Slackware [slackware.org] decided to jump to version 7 from 4 [slackware.org] just to keep up with certain other [redhat.com] distros when Linux was becoming popular.
Idiocy never ceases to amaze and influence. Then again, the folks in Redmond [microsoft.com] are seemingly above numerical versioning after 3.11. First Windows 95, then 98, then 98B (ooooh), then ME/2K, and after that I guess they decided to switch to something other than the year (people may start noticing how much they are being fucked over if they are reminded of the present year by looking at their boot screen) and now we have XP. After that.... XP2? XIP? LMNOP? XYZ?
Ugh.
--
Re:actually... (Score:2)
#include
int main()
{
std::cout "Hello all!" std::endl;
}
The main function in C++ should look the same as in C (but may have '()' instead of '(void)').
You should read the C FAQ, sections 11.12, 11.14 and 11.15 at "http://www.eskimo.com/~scs/C-faq/s11.html".
For an explanation of the 'std::' prefix, please ask comp.lang.c++ or alt.comp.learn.c-c++ about "namespaces".
With GCC, always use -Wall.
Re:actually... (Score:2)
Yes. Many of the books you'll find in the computer section of your local bookstore are painfully incorrect, often on the most basic topics. It's almost a joke, really, how much money is charged for many books that are full of paper that is too hard and scratchy to use for toilet paper, but not useful as anything else.
The C++ FAQ recommends a few good books on C++, if you're actually interested in learning the language.
namespaces (Score:2)
thanks for the url, btw.
--
News for geeks in Austin: www.geekaustin.org [geekaustin.org]