Compiling C++ with `.hpp` in includes folder and `.cpp` in sources folder in VS Code using Code Runner
So I'm using Code Runner
extension by Jun Han
to compile and run my C++ Code in VS Code (in Windows), My workspace folder looks like this
I really want to separate my .hpp
files inside subfolder named incldues
and also separate my .cpp
class files to subfolder named sources
to organize my files.
My Code Runner executor map - settings.json
looks like this and开发者_C百科 it works fine but only if my .hpp
's and .cpp
's are also in the workspace main folder.
I can use CMake but we have no CMake in our University Computer Lab and our professor is the only one with access to download and install some application in it.
I have tried editing my Code Runner executor map - settings.json
like this and #include "../includes/ConsoleInterface.hpp"
in main.cpp
and it don't work.
精彩评论