0

hi, i want to compile a file through the makefile command.Once i type make example it says that it is up to date but when i try to run it (correct me if I'm wrong ./example) it says that permission was denied..does anybody have any clue about that?

2
Contributors
4
Replies
6
Views
6 Years
Discussion Span
Last Post by libathos
0

uuuuh what do you mean? post the inner code?

example: example.o
	gcc -o example example.o -Wall -L/usr/X11R6/lib -lX11

HelloX.o: HelloX.c
	gcc -o example.o example.c -c -ansi -pedantic -Wall
0

Is example built by you, or did it come with the source code? I suspect latter. Try to

rm example; make example

BTW, second rule looks really strange.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.