LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-06-2006, 04:01 AM   #1
moondog1129
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
can't run the executable file after compiling with g++ compiler


Hi there,
I am really new to Linux. I just installed Ubuntu on my old laptop few days for some school projects. I've also installed the GNU C++ compiler. I was able to compile things smoothly with a make file and everything; however, when I tried to run the executable file, it said that "command "xxxxx" is not identified". It is quite strange 'cause it works totally fine on my school linux server. I've also tried to create a very simple file and compile with g++ -c test.cpp, g++ -o test test.o, and same thing happened when I tried to run the executable file. Can someone please tell me know what the problem is?? Any response is appreciated. Thanks very much!
 
Old 02-06-2006, 06:41 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
That error message looks unusual. Are you sure it didn't say:
Code:
bash: xxxxx: command not found
Try entering the full path to the file, /home/moondog/some/folder/xxxxx or whatever

Andy
 
Old 02-06-2006, 09:24 PM   #3
Vagrant
Member
 
Registered: Nov 2001
Posts: 75

Rep: Reputation: 15
$ g++ test.cpp -o test
$ chmod u+x test
$ ./test
 
  


Reply



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
Run executable file compiled by kylix and mysql in Fedora Core 4 aa_husni Fedora 0 09-15-2005 12:14 AM
Problem with gcc: configure: error: C compiler cannot create executable abefroman SUSE / openSUSE 4 05-11-2005 06:12 PM
Cannot not run executable jar file after set content type for download antony_csf Programming 1 12-08-2004 12:22 AM
compiling a java file to be executable spyghost Programming 5 08-28-2003 07:20 AM
How do I run my executable?? scott7500 Programming 2 12-30-2001 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:44 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