?
Solved

how can I execute the program ?

Posted on 2000-04-06
2
Medium Priority
?
180 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 80 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

771 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