I've got a simple program (at one point an empty program to test) that will run and compile fine in Netbeans, but at the terminal I get the error:
./main.0: 1: Syntax error: word unexpected (expecting ")")
Even when the program is empty, does nothing. What's going on here?
When compiled and run in Netbeans 6.9 there is no error. However in Ubuntu, in the shell, calling the command ./main.o gets me the error:
./main.0: 1: Syntax error: word unexpected (expecting ")")
Am I right in saying,
1. if you compile from the shell and run from the shell it works
2. If you compile from Netbeans and run from Netbeans it works
3. If you compile from Netbeans and run from the shell, it does not work
?
Yes, that is correct. I'm guessing I'm not finding the executable created by Netbeans. Since main.o is an object file. Wish I had my work in front of me. I'll search some more tomorrow, thanks all for the replies.