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
Solved

how can I execute the program ?

Posted on 2000-04-06
2
176 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

860 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