post  Beginner C/C++ compiler

TheNetherHero (8)   Link to this post
Hey guys just setup a fedora linux system as a virtual machine looking to get a decent beginner preferrably freeware if possible c/c++ compiler. Supposedly fedora 12 comes packaged with gcc 4 havent been able to find it at all any help would be much obliged.
PanGalactic (780)   Link to this post
What does "yum list gcc" tell you?

This is from Fedora 11:

$ yum list gcc
Installed Packages
gcc.x86_64                         4.4.1-2.fc11                         @updates


And:
$ gcc --version
gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


If gcc really is not installed, you will need to run:

yum install gcc


or

yum groupinstall "Development Tools"

TheNetherHero (8)   Link to this post
The package said it was installed but now I cant seem to find it to run it. I checked system tools and the other apps also tried to run from the terminal any idea where it could be hiding? Thanks in advance for the help.
PanGalactic (780)   Link to this post
/usr/bin/gcc (for C) or /usr/bin/g++ (for C++).
PanGalactic (780)   Link to this post
Are you looking for a compiler or for an IDE?
writetonsharma (832)   Link to this post
insert the cd, there will be rpm for gcc in the cd, install from that.
if it ask for any dependency that will also be inside the cd, install all dependencies and finally you will have a working c++ compiler.

for an ide, there will an rpm for kdevelop.

sometimes applications are also installed in /usr/local/bin.
Last edited on
TheNetherHero (8)   Link to this post
Thanks again guys :)

Also im looking in to trying to write a text based rpg of sorts would C/C++ be a good language to base it in? I dont want it to be huge just something I can work on for a month or two playtest with my friends and then make another. any advice or opinions would be appreciated.
computerquip (878)   Link to this post
There's absolutely no point in writing that in C or C++. The RPG would by no means be CPU intensive and probably use less than 1% of your processor at a time. Most of the time, a simple scripting language (or even bash or shell) will do just fine for a text based RPG.
Last edited on
jsmith (3807)   Link to this post
All else equal, OP should write it in the language s/he is most comfortable with. C or C++ isn't a bad choice just because
it is not CPU intensive. The only relevant factors in choosing a language for such a game are: 1) do I know the language
or want to learn a new one, and 2) does the language provide support for what I want to do. 2 happens to be yes for
a good number of languages compiled or interpreted.
TheNetherHero (8)   Link to this post
tried what you guys said using /usr/bin/gcc in the terminal and came back with gcc:no input files any ideas?
computerquip (878)   Link to this post
Oh boy...

How do you think the compiler knows which files to compile into a machine language?
writetonsharma (832)   Link to this post
that was hilarious... :)))
PanGalactic (780)   Link to this post
I'm guessing you really want something like KDevelop, not gcc.

This topic is archived - New replies not allowed.