LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2002, 07:02 AM   #1
Skibz
LQ Newbie
 
Registered: Oct 2002
Location: England
Posts: 13

Rep: Reputation: 0
how to compile??


i've got a C file I want to compile, the readme says to type

CC filename.C

but when I type that in Konsole it says CC No command or something. Do I need to download GCC ? I'm running winlinx 2003, thanks!
 
Old 10-24-2002, 08:48 AM   #2
0x0001
Member
 
Registered: Sep 2002
Distribution: Slackware 8.1
Posts: 84

Rep: Reputation: 15
cc stands for c-compiler. Most often however linux distros are shipped with the gnu c-compiler leading to a binary name of gcc.
Sooo you should try:

gcc filename.c

btw: a .C (as opposed to .c) file is c++ or am i wrong?

so alternatively you should try g++.

if those do not work, you might have to dl gcc.
 
Old 10-24-2002, 10:11 AM   #3
Skibz
LQ Newbie
 
Registered: Oct 2002
Location: England
Posts: 13

Original Poster
Rep: Reputation: 0
thanks for your help, but that hasn't worked :/ So I guess i'll have to download GCC, thanks anyway.
 
Old 10-24-2002, 10:57 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
It should be on your installation CD(s). Which distro are you using?
 
Old 10-24-2002, 11:51 AM   #5
Skibz
LQ Newbie
 
Registered: Oct 2002
Location: England
Posts: 13

Original Poster
Rep: Reputation: 0
to be honest, i'm not really sure, i'm new to all this linux stuff. I just downloaded the smaller sized non supported copy of winlinux 2003.
 
Old 10-24-2002, 12:28 PM   #6
Skibz
LQ Newbie
 
Registered: Oct 2002
Location: England
Posts: 13

Original Poster
Rep: Reputation: 0
i've just downloaded gcc-3.1.tar

and i was wondering if anyone could give me any pointers on how to install gcc, thanks.
 
Old 10-24-2002, 01:30 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
it will have all the documentation inside it. please learn to search the site for basic problems like installing from source.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 05:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 05:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 02:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 02:53 AM
How do I compile? icecream33 Programming 2 10-07-2002 07:28 AM


All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration