Answer the question
In order to leave comments, you need to log in
How to fix project build error when connecting sdl?
Hello. I'm new to c++, recently graduated from inheritance and decided to move on to learning the SDL graphics library. I installed the latest version of the library, connected it to the project, but an error occurs at the project build stage (and not in the code itself, but in the project).
my code:
#include
using namespace std;
int main()
{
if (SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO))
{
exit(1);
}
}
Error text:
1>MSVCRTD.lib(exe_winmain.obj) : error LNK2019: reference to unresolved external symbol [email protected] in function "int __cdecl invoke_main(void)" ([email protected]@YAHXZ).
1>C:\Users\User\source\repos\Project10\Debug\Project10.exe : fatal error LNK1120: unresolved externals: 1
1>Building project "Project10.vcxproj" failed.
Screenshot of the error:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question