Emily Emily - 1 year ago 126
C++ Question

sublime with g++ not working

I set up sublime and my text is not showing up colorful or anything highlighted if a library, etc. I am doing a simple hello world and I am getting the error:

clang: error: no input files
[Finished in 0.0s with exit code 1]

What does this mean and how do I fix it?


Answer Source

Ensure your files are saved and have the appropriate file extensions:
C/C++ common file extensions:
.c, .cpp, .cc, .h, .hpp

Also check that you have syntax highlighting enabled:


Set Syntax: C++11

There is not enough information on your build system from within sublime.
Check Tools->Build System and make the necessary adjustments there.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download