User forums > Using Code::Blocks

error (0xc000007b) during the set up of sdl

<< < (2/2)

jackyPITCH:

--- Quote ---ok, this is the worst idea i have heard in a lot years.... NEVER EVER copy ANYTHING into your windows directory... You will only hit TONS and TONS of strange problems (like you do now)...

--- End quote ---

i just followed the tuto on http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php . and when i take the sdl2.dll off the syswow64 folder, i just have the error "cannot find sdl2.dll" . the code i use to test if the sdl is working is the "hello_sdl.zip" that lazyfoo provide ( you can download it at the end of the link i gave earlier, or i gave you a pastebin in my original post )

what do you mean by "clean" ? as soon as there is the line #include <SDL.h>, i got the error, even if i just want Hello World. thank you for your answer btw

EDIT : ok so i put the sdl2.dll in the c::b folder, it do not provides the same error, but now i have tons of undefined reference (like SDL_Error , SDL_Delay ) but i have the #include <SDL.h> ? any ideas ?


NEW EDIT : ok i just did nothing and now the error changed : ld.exe||cannot find -lSDLmain| ld.exe||cannot find -lSDL| ||error: ld returned 1 exit status| i dont know what to do

new edit 2 :  ok the error are not the same when in the linker settings i put -lSDL2main -lSDL2 -lmingw32 and -lSDLmain -lSDL -lmingw32, without the 2 this is the error from the new edit and with the 2 its the error from the edit

BlueHazzard:

--- Quote ---i just followed the tuto on http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php .
--- End quote ---
then this is terrible tutorial.



--- Quote ---and when i take the sdl2.dll off the syswow64 folder, i just have the error "cannot find sdl2.dll"
--- End quote ---
You have to put the dll somewhere your program can find it. in the same folder as your exe, not as codeblocks...

follow this tutorial: https://www.youtube.com/watch?v=Gj3iXwvKmUY i only zapped trough it but it seems ok

btw. you get this cryptik 0x..... error message because the dll from this tutorial is build with a older mingw version as you are using and for this the dlls are not compatible with your exe



Navigation

[0] Message Index

[*] Previous page

Go to full version