There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash dns drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet java laptop malware memory monitor motherboard network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
C++

Reply  
Thread Tools
divorce3's Avatar
Member with 75 posts.
 
Join Date: Nov 2003
18-Apr-2005, 08:26 PM #1
C++
I'm trying to compile and run C++ in Fedora Core3 with no success.
C no problem but they are hiding the C++ compiler somewhere.
Does anyone know the command.

Thanks
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
18-Apr-2005, 08:52 PM #2
gcc

gcc file.cc(or whatever you want to name it) -o file

should take care of it

I know that there's also g++ which suposedly is for c++ code, while accepting most of the normal gcc effect stuff. I've not compiled c code on linux so can't much more. Man gcc should give you some more information.
__________________
Gentoo Developer, and 64bit os user

"In feeding Mother Nature, you are fed in return" - Tsunam (2005). Concerning water conservation, and raising water tables.
Rashid786's Avatar
Member with 31 posts.
 
Join Date: Dec 2004
Experience: Fairly advanced but completely new to linux
21-Apr-2005, 12:54 PM #3
I am using the SuSE 9.2 eval version, so when ever I type gcc into a shell i just get an error...and intsalling GCC soudns like a pain Anyone know of a free, functional, easy to install, Linux C++ compiler? Anyone?

-Rashid786-
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
26-Apr-2005, 04:04 PM #4
Quote:
Originally Posted by Rashid786
I am using the SuSE 9.2 eval version, so when ever I type gcc into a shell i just get an error...and intsalling GCC soudns like a pain Anyone know of a free, functional, easy to install, Linux C++ compiler? Anyone?

-Rashid786-
Gcc is not that hard to install if you follow the installation instructions. It is a technology that mutates itself to each target platform (hardware+OS), and as such makes the errant claim of portability. The mutation is to use the target dependent platform header files for the installed compiler, so when it compiles source code, it passes the source code through header file expansion and the target definitions are applied prior to the code entering the compiler proper - thus the target mutation as opposed to purely portable code that needs no modification via target dependent header files to compile.

g++ is the Gnu c++ complier with Gnu extentions for c++.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Conrad747's Avatar
Member with 364 posts.
 
Join Date: Jul 2004
Location: North of 60, eh
Experience: Intermediate
26-Apr-2005, 06:52 PM #5
have you tried "yum install gcc"?
i tried to install superkaramba over the weekend and it looked for gcc and c++ libs and everytime i installed an rpm it looked for another dependency. so what did i do? i did fresh install with "everything" (full). it was time consuming specially the updates (600+) but i installed superkaramba .
good luck.
Conrad747's Avatar
Member with 364 posts.
 
Join Date: Jul 2004
Location: North of 60, eh
Experience: Intermediate
26-Apr-2005, 06:53 PM #6
also, try add/remove packages and see if you can add "development" or just "everything" as the compilers are in the development.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:31 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.