当你遇到“undefined reference to sdl_main'”错误时,通常是因为链接器未能找到SDL库中的SDL_main`函数。以下是一些可能的解决步骤: 确定错误原因: 这个错误通常表明你的项目在链接阶段未能找到SDL库中的SDL_main函数。这可能是因为SDL库没有被正确链接到你的项目中,或者链接器设置不正确。 检查链接器设置: 确...
-lSDL
我在使用SDL2的时候,遇到undefined reference to `SDL_Init'的问题,只要使用SDL2相关的函数,就会报函数未定义。后来百度到一篇文章https://blog.csdn.net/hank12580/article/details/45949995,经过测试可以使用,原来是编译的时候后面要加一些参数,具体我不知道是干啥的,至少给了我一个方向,我应该去看看SDL2相关的教...
jni/../jni/sdl_main/sdl_main.c:58: error: undefined reference to 'SDL_main' jni/../jni/sdl_main/SDL_android_main.cpp:37: error: undefined reference to 'SDL_main' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/home/myuser/Android...
Hello, I try to build pc_simulator project, but I get follow 19 errors, what do I wrong??: Description Resource Path Location Type undefined reference to SDL_CreateRenderer' monitor.c /pc_simulator/lv_drivers/display line 211 C/C++ Problem undefined reference to SDL_CreateTexture' monitor.c...
我把x86_64-w64-mingw32/lib 下的libSDL2main.a和libSDL2.a解压了出来。也设定了include 和 link的路径。-lmingw32 -lSDL2main -lSDL2 也添加了。但是悲剧的undefined reference to `SDL_Init'xxxxxx求解。。我上传了 我的工程文件 及SDL2-devel-2.0.4-mingw.tar.gz(官网下载略慢)地址http://pan....
在Eclipse中编译时,我有以下错误:undefinedreferenceto `btCapsuleShape::btCapsuleShape(float, float)'undefinedreferenceto `btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVecto 浏览1提问于2013-06-15得票数0 1回答 未定义对‘SDL _Init’的引用,将SDL链接到程序 ...
Mais, je réalise un appel du constructeur de la classe SDL::Window dans SDL::WindowGL car cette dernière hérite publiquement de SDL::Window, or cet appel me renvoie l'erreur "undefined reference to `vtable for WindowGL". Pour info, je code en C++17 avec le paquet build-essential ...
CMakeFiles\Test_Project.dir/objects.a(main.cpp.obj):main.cpp:(.text+0x4d): undefined reference to `SDL_CreateWindow' CMakeFiles\Test_Project.dir/objects.a(main.cpp.obj):main.cpp:(.text+0x60): undefined reference to `SDL_Delay'
SDL_image undefined reference to `IID_IDirectDrawSurface3' SDL_dx5video.c:(.text+0x191): undefined reference to `IID_IDirectDrawSurface3' SDL_