Search code examples
c++compilationbuild-processsublimetext2

g++ No such file or directory sublime text


Trying to compile hello world on windows 8, using Sublime Text 2, get the following error:

g++: : No such file or directory
g++: No input files
[Finished in 0.7s with exit code 1]

Thanks for the help.


Solution

  • Solved, but embarrassing to post. The issue was that I assumed that Sublime Text 2 autosaved upon quitting the program. SB2 auto-opens the last file you're working on, so I thought it was already saved. Saving the file to whatever path eliminates the error and compiles fine.