如何修复'The procedure entry point SDL_RWclose could not be located in the dynamic link library'
How to fix 'The procedure entry point SDL_RWclose could not be located in the dynamic link library'
我正在尝试使用sdl_image扩展名将png映像绘制到窗口,但它给了我一个"未找到"错误
我正在使用sdl(2.0.9(和sdl_image(2.0.5(我将以下bin文件复制到可执行文件
- libjpeg-9.dll
- libpng16-16.dll
- libtiff-5.dll
- libwebp-7.dll
- sdl2.dll
- sdl2_image.dll
- zlib1.dll
main.cpp提取
#include <iostream>
#include <SDL.h>
#include <SDL_image.h>
int main( int argc, char* args[] )
{
SDL_Texture* test_tex;
SDL_Window* window = NULL;
SDL_Renderer* renderer;
if(renderer)
{
//Tested blank screen and it works
/*
SDL_RenderPresent(renderer);
SDL_Delay(2000);
*/
//Trying to use SDL_image and it fails
SDL_Surface *tmp_surface = IMG_Load("player.png");
test_tex = SDL_CreateTextureFromSurface(renderer,tmp_surface);
SDL_FreeSurface(tmp_surface);
SDL_RenderPresent(renderer);
SDL_Delay(2000);
}
...
像这样
g++ test.cpp ^
-IC:devSDL2-2.0.9i686-w64-mingw32includeSDL2 ^
-IC:devSDL2_image-2.0.5i686-w64-mingw32includeSDL2 ^
-LC:devSDL2-2.0.9i686-w64-mingw32lib ^
-LC:devSDL2_image-2.0.5i686-w64-mingw32lib ^
-lmingw32 ^
-lSDL2main ^
-lSDL2 ^
-lSDL2_image ^
-o test
我已经用空白渲染器测试了窗口,这一切都可以,当我将调用添加到img_load
您需要另一个sdl_image版本。使用sdl_image(2.0.4(而不是(2.0.5(。
您可以在此处获得较旧的版本:
https://www.libsdl.org/projects/sdl_image/release/?c=m;o=d
(解决我的问题(
2.0.9 32位sdl2.dll给了我问题,除了VC 以外的任何事物。幸运的是,2.0.10版本可用于测试,实际上适用于我的Code :: Blocks编译测试:https://www.libsdl.org/tmp/tmp/download-2.0.php
相关文章:
- C++核心准则 C35 对于接口类"A base class destructor should be either public and virtual, or protected and nonv
- 使用模板进行堆栈实现; "name followed by :: must be a class or namespace"
- 这对"With a stackless coroutine, only the top-level routine may be suspended."意味着什么
- 为什么我会" void value not ignored as it ought to be"?
- 如何解决"no Qt platform plugin could be initialized"问题?
- InitializeCriticalSectionEx Not Located In KERNEL32.Dll
- C++/SDL "initial value of reference to a non-const must be an lvalue"
- 如何修复输出日志中的"EnableInput can only be specified on a Pawn for its Controller"错误
- _BitScanForward64 can not be found
- C++复制函数重载导致"must be a nonstatic member function"错误
- 通过分隔符分隔包含 UTF-16 BE 文本的uint8_t数组
- Qt5 部署"procedure entry point could not be located"
- 如何修复'The procedure entry point SDL_RWclose could not be located in the dynamic link library'
- "The ordinal 344 could not be located in the dynamic link library"
- Libavcodec "the procedure entry point for av_frame_alloc could not be located" Visual Studio 2017 C+
- 无法运行Qt C++发布版本。 'The procedure entry point could not be located'
- 如何修复 WSL 上的智能感知'A definition for the symbol could not be located'
- "the procedure entry point _ZNSt8_detail15_List_node_base7_M_hookEPS0_ could not be located in the
- 在win2k3上运行.exe时发生"The procedure entry point GetErrorMode could not be located in the dynamic link l
- 明、提升和运行时"procedure entry point could not be located"