I'm trying to make a simple script that will compile test.cpp but I cannot get it to work. I'm running the script like this:
> bash make.sh
And getting the following error:
: No such file or directory g++: no input files make.sh: line 3: ./test.out: No such file or directory
Here is make.sh:
#!/bin/sh g++ -o ./test.out ./test.cpp ./test.out
I've tried it without the " ./ " and it still doesn't work. I am running Cygwin on Windows 7 with all the proper packages installed (I can compile and run from the shell itself, just not from script).