Solved

how can I execute the program ?

Posted on 2000-04-06
2
170 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
2 Comments
 
LVL 2

Accepted Solution

by:
fremsley earned 20 total points
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now