I have created a program called tib.c with an include file tib.h. I am
able to successfully compile the file using “cc -c tib.c -o tib.o”. When
I attempt to execute the program with “./tib.o”, I receive a message
(where *** = unintelligible stuff)
***: not found
…/tib.o[26]:syntax error
Any thoughts?
Thanks
Doug
“Douglas Reed” <dreed@guise.com> wrote in message
news:3BCD9A6E.E286BFFF@guise.com…
I have created a program called tib.c with an include file tib.h. I am
able to successfully compile the file using “cc -c tib.c -o tib.o”. When
I attempt to execute the program with “./tib.o”, I receive a message
(where *** = unintelligible stuff)
***: not found
./tib.o[26]:syntax error
Because of the -c option you’ve instructed cc not to link. tib.o
is an object file not an executable. Try:
cc tib.c -o tib
Any thoughts?
Thanks
Doug