I am working on some c++ stuff and I hate having to create a whole new project just to run a few things on a file.
I also don't like how when you create a project a file is already called main.cpp
.
I just want to make a single file with a few functions or classes. It's not important enough to create a whole project.
I want to create a file and call it what i want. Just create a file what I call, then compile and run.
I don't want to deal with the whole CMake
thing, just compile ONE file.
No project related. Thank you.
I know you can do this on visual studio, but i am working on a mac OS X using Clion
.
g++ -std=c++11 -o target target.cpp
where "target" is the name of the program I'm building. – Spam