我正在尝试使用SDL 2.0.10测试sdl图像,代码非常简单,我的IDE是Code :: Blocks 17.12,renderig可以正常工作,但是当我尝试从表面放置图像时,会出现错误。
我在Windows 7上使用Code :: Blocks,尝试更改映像,并且安装sdl映像的方式也尝试了不同版本的sdl2。
SDL_Surface *tSurface = IMG_Load("assets/image.png");
ptexture = SDL_CreateTextureFromSurface(renderer, tSurface);
SDL_FreeSurface(tSurface);
SDL_RenderClear(renderer);
SDL_RenderCopy(renderer,ptexture,NULL,NULL);
SDL_RenderPresent(renderer);
期望将图像打印到窗口,出现错误:“过程入口点SDL_RWclose不能位于动态链接库中”