I have two files from a book I'm trying to compile. One is the main file usehotel.c. The second is the function definitions for a header file, hotel.c. I've tried the -o option different ways and I can't get it to work. I don't want the file names to change to a.out after compilation.
I've tried compiling them separately with
I've tried compiling them separately with
-c -o
but when I cc hotel usehotel
after it works but when I ./usehotel
I get permission denied.
Last edited by a moderator: