Setting up C++ coding environment on Windows with Visual Studio
Hey, I've been trying to set up my c++ coding environment on Windows with VS, but when I want to use external libs I always get an error.
I followed this guide on GitHub (https://github.com/HO-COOH/CPPDevOnWindows) and everything worked at first but then when I wanted to run my code, wich had an external libary (SDL2) it shows an error (shown in the pic) even tho it doesn't underline the part in the text editor. I've tried to fix it with multiple methods and even asked ChatGPT but nothing worked.
what I tried to do:
1. creating a new project but it keeps happening with all of them
2. looked up the configuration type -> it's set to application (.exe)
3. included it into "additional include directories" under c/c++ and general
4. included it into "additional library directories" under linker and general
5. looked up if it is the right SubSystem under linker and system -> it's Console (I always use Console App when creating an new project)
6. looked up if it has the right user variables and system variables in PATH -> all are linked
IDK what to do...
GitHub
GitHub - HO-COOH/CPPDevOnWindows: Best guide to setup C/C++ develop...
Best guide to setup C/C++ development environment on Windows - HO-COOH/CPPDevOnWindows

4 Replies
Is it under UAC or NAC protected subfolders? Such as program files
I use vcpkg for the libraries and SDL is in C:\vcpkg\installed\x64-windows\include
:fenrirDamn:
this error looks more like you may have just forgotten a library or two
can you try a really basic hello world.cpp and see if that works?
That works I‘ve already tried that
Idk in the path c:/vcpkg I ran .\vcpkg install sdl2:x64-windows