Search code examples
c++visual-studiosdl

My code has no errors, but it isn't working


I am making a project on Visual Studio Community in C++.All of my code is correct, but when I run it, it does not show me the wanted output, nor does it show the console.The output should be a green screen on the console, but instead doesn't even show the console. I am a beginning C++ programmer, so I decided to come here and wait if somebody could answer. I would really appreciate it. Thank you. Here is a screenshot link of Visual Studio Community and my code:

And here is the link of the youtube video I was following:

https://www.youtube.com/watch?v=QQzAHcojEKg&list=PLhfAbcv9cehhkG7ZQK0nfIGJC_C-wSLrx


Solution

  • You seem to have 64-bit SDL libraries but are building a 32-bit project in visual studio. You can't mix 32 and 64-bit code. Change the x86 dropdown in the toolbar to x64.