Solved

how can I execute the program ?

Posted on 2000-04-06
2
179 Views
Last Modified: 2010-04-20
I faced a problem, that is can't execute my program !!!!
for example, now I got a file called abc.c, I type make to compile it, right ?
then I type . abc, it seem that it haven't execute, what is the problem ?
0
Comment
Question by:ahchong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
fremsley earned 20 total points
ID: 2689473
You created a Makefile to compile a single source file? Have you tried:

  gcc -o abc abc.c
  ./abc
0
 
LVL 3

Expert Comment

by:DVB
ID: 2691596
a) Did you create the makefile?
b) You forgot the / . .abc is a hidden file ./abc is a file in the current directory.

fremsley has given you a simple solution for small files. makefiles are used for programs which contain a number of source files, like say, the kernel. (This helps in reducing the overhead of typing common options and filenames all over again, when a small change is made)
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question