LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-04-2008, 09:22 AM   #1
sunrajtech
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
GCC compailer


Hi,

i have try to open gcc in terminal command line there in type following
thing according to your reply.

fablab@fablab-desktop:~$ g++ hello.C -o hello
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
Make sure you have the 'universe' component enabled
bash: g++: command not found
fablab@fablab-desktop:~$


this error will be come you tell me which command use for open gcc compailer.

i have type in terminal gcc hello.c but come following message you tell me how do solve problem.

fablab@fablab-desktop:~$ gcc hello.c
gcc: hello.c: No such file or directory
gcc: no input files

regards,

sunrajtech.
 
Old 01-04-2008, 09:40 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by sunrajtech View Post
Try: sudo apt-get install <selected package>
Have you tried this? You don't have g++ installed, hence why you get those messages.


Quote:
i have type in terminal gcc hello.c but come following message you tell me how do solve problem.

fablab@fablab-desktop:~$ gcc hello.c
gcc: hello.c: No such file or directory
gcc: no input files
Is your source file called hello.c or something else? The example I gave was just that: an example. You need to employ common sense and substitute file names in examples with the file names you're using. It also helps if you're in the same directory as your source code.
 
Old 01-04-2008, 09:43 AM   #3
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by sunrajtech View Post
fablab@fablab-desktop:~$ g++ hello.C -o hello
I see that your file has a ".C" (capital C) extension on this line.

Quote:
Originally Posted by sunrajtech View Post
fablab@fablab-desktop:~$ gcc hello.c
gcc: hello.c: No such file or directory
gcc: no input files
In this command, you use a ".c" (small c) extension. Did you mistype the extension here?
 
  


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
c compailer sunrajtech Programming 2 01-03-2008 11:05 AM
pkg-get install gcc ERROR: gcc unrecognized Raidmax Solaris / OpenSolaris 10 08-30-2007 12:51 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM
C compailer juanb Linux - Software 4 12-09-2002 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:27 AM.

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
Open Source Consulting | Domain Registration