SDL2 is the first library I have used with C++
I have been starting with the LazyFoo Tutorials.
When I try and build/run the LazyFoo example using SDL2.ttf I get a console window and a windows pop up message,
(X) The procedure entry point InterlockedCompareExchange@12 could not be located in the dynamic link library
Is there any easy fix or explanation?
Do you use the SDL2_ttf from Lazy Foo? I don’t know what this dll is and whether it works or not. You should install the SDL_ttf development library from there https://www.libsdl.org/projects/SDL_ttf (extract it directly under C:\ using 7-zip), the version for MinGW or Visual Studio depending on what you use. Then copy all dll-s from the proper bin directory there (lib directory in case of Visual Studio) to your project’s directory (don’t overwrite any from SDL_image), or add this directory to Path. Consider that there are different versions in the library for i686 (32 bit) or x86_64 (64 bit), choose the one depending on whether your operating system is 32 or 64 bit. Also then the MinGW compiler should be either 32 bit or 64 bit correspondingly, or when using Visual Studio, choose either 32 bit or 64 bit before building.
And Happy Holidays!
kiss_sdl - Simple generic GUI widget toolkit for SDL2 https://github.com/actsl/kiss_sdl
Thank you for the reply.
Yes I was using the wrong dll versions it works now.