开发者

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

Compiling C++ with `.hpp` in includes folder and `.cpp` in sources folder in VS Code using Code Runner

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.

Compiling C++ with `.hpp` in includes folder and `.cpp` in sources folder in VS Code using Code Runner

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.

Compiling C++ with `.hpp` in includes folder and `.cpp` in sources folder in VS Code using Code Runner

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜