Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 19-12-2009
Member
 
Join Date: Jul 2009
Posts: 127
Problem to compile a program under linux

Hello
I would like to compile my application Xandros Linux distribution, so I watched how he had done in various forums and FAQs and I'm trained with small programs like "Hello World!", but it does not work! Can someone help me please? thanks in advance.
Reply With Quote
  #2  
Old 19-12-2009
Member
 
Join Date: Jul 2009
Posts: 127
Re: Problem to compile a program under linux

Hey,
I tried to compile my program by following instruction for a book, this i show I did it.
Code:
g + +-o program test.cpp
This gives my an error
Code:
 "bash: g + + command not found"!!
I do not understand what I can do? I am fairly new to linux operating system, so guys please help me out.
Reply With Quote
  #3  
Old 19-12-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Problem to compile a program under linux

Hi,
I think you have no C + + compiler installed. The error is because if can not find g + +. Either you find a CCG in the archives of your distribution installed by package manager, or you find another distribution in any facility included a C + + compiler.
Acquired by conscience:
Code:
$ Su --
password
# updatedb
# locate g + +
Hope this helps you.
Reply With Quote
  #4  
Old 19-12-2009
Member
 
Join Date: Jul 2009
Posts: 127
Re: Problem to compile a program under linux

Hello
Yes, when I go to synaptic manager, there is the gcc package installed. And when I do a search for g + + in the synaptic manager, I found- libstdc + + 5 and libstdc + + 6. Well when I do "updatedb", it hangs and nothing happens. "Locate g + +" does not work either (it returns me the prompt). Any more recommendations on this.
Reply With Quote
  #5  
Old 19-12-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Problem to compile a program under linux

Hi
Quote:
Well when I do "updatedb", it hangs and nothing happens.
Does not block, this is normally the base and returns to the prompt.
Quote:
"Locate g + +" does not work either
not g + +, otherwise you would have found gcc not g + +
If you are a debian user or debian based user then
Code:
apt-get install g + + 
apt-get install make
This should do the trick.
Reply With Quote
  #6  
Old 19-12-2009
Member
 
Join Date: Jul 2009
Posts: 127
Re: Problem to compile a program under linux

Hi
Quote:
apt-get install g + +
No version of g + + is available, but it exists in the database, I think the package is missing, it has become obsolete, or is only available from another source.
Code:
apt-get install make
The error is
Code:
Could not find package make.
Quote:
updatedb
The error is
Quote:
/ usr / bin / find: /. Config: No such file or directory type.
And Xandros is a Debian based operating system.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Problem to compile a program under linux"
Thread Thread Starter Forum Replies Last Post
How to compile program for PowerPC Ubuntu? Dipanwita Operating Systems 1 24-01-2012 06:09 AM
How can I compile in Linux what I have done in Windows (Visual Studio) Arif15 Software Development 4 22-09-2010 12:28 PM
Compile java program from mobile Maya Angelou Software Development 4 01-04-2010 09:15 AM
Compile and execute a program in java ISAIAH Software Development 5 03-03-2010 01:07 PM
How compile and install softwares from source in linux? Baker Operating Systems 4 03-03-2009 12:21 PM


All times are GMT +5.5. The time now is 12:07 PM.