I have a C++ program that I usually compile with Code::Blocks, but now I must find a way to compile it with VS Code. I've been watching tutorials for hours, but I still can't make it happen in VS Code.
The program is really simple. Here's my project settings from Code::Blocks
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="game_test" />
<Option makefile="makefile" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="default">
<Option output="game_test" prefix_auto="1" extension_auto="1" />
<Option type="1" />
<Option compiler="gcc" />
</Target>
</Build>
<Linker>
<Add library="ws2_32" />
</Linker>
<Unit filename="admin.cpp" />
<Unit filename="common.cpp" />
<Unit filename="common.h" />
<Unit filename="database.cpp" />
<Unit filename="database_auto.cpp" />
<Unit filename="database_common.cpp" />
<Unit filename="database_common.h" />
<Unit filename="database_mysql.cpp" />
<Unit filename="main.cpp" />
<Unit filename="main.h" />
<Unit filename="memory.cpp" />
<Unit filename="memory.h" />
<Unit filename="protocal.cpp" />
<Unit filename="server.cpp" />
<Unit filename="sock.cpp" />
<Unit filename="user.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
Hope the settings from C::B will make it clear on what should be done.