• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

how can I execute the program ?

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
ahchong
Asked:
ahchong
1 Solution
 
fremsleyCommented:
You created a Makefile to compile a single source file? Have you tried:

  gcc -o abc abc.c
  ./abc
0
 
DVBCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now