User forums > Using Code::Blocks

error (0xc000007b) during the set up of sdl

(1/2) > >>

jackyPITCH:
Hello i'm new to c::b and i try to learn sdl, and to set up the sdl 2 on c::b i followed this tuto http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php#5, and everything went well until the last f9 where i got this error (0xc000007b),the application will not start. here is the code : https://pastebin.com/Ug93dxdM thank you

BlueHazzard:
If you get this error from codeblocks then you have to describe better what happens

If you get this error from your application then this is the wrong forum to ask this kind of questions... We do not give support for compiler/third party libraries ecc...

in general try a rebuild (build->clean and build->build)
Post build logs, check your dlls, check your compiler...

stahta01:
Link found by Google for this error: https://www.techcrises.com/how-to/how-to-fix-error-code-0xc000007b-in-windows-7-8-8-1/

If C::B is not having the error; then, I would try the things in the link.
Note: I would likely do "Method 7: Check and fix dll dependencies with Dependency Walker" first; then, try the other things suggested.

Tim S.

jackyPITCH:
thank you guys, i tried rebuild, it did not works, i tried lots of method but it didn't work. maybe what i should have said earlier is that the error is happening after i put the SDL2.dll in the folder c:\windows/syswow64/.., and before i put it i got the error " can not find sdl2.dll. Plus when i run a program without including sdl it works.


edit : i just did method 7 and have a lot ( like 50 ) error "error opening file" should i dl all the missing dll ?  thank you again

BlueHazzard:

--- Quote ---i put the SDL2.dll in the folder c:\windows/syswow64/
--- End 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)...

if your application can not find the dll then put it in the same directory as your application. If it sitll can not found there is something wrong with the compilation. but NEVER copy it to the windows folder. Not long ago i had an application that installed the QT and libstdc++6 dlls into the system folder... boy had i a lot problems with the system after this...

Your error is probably because you are using the wrong dll in the wrong place... Like having 10 sdl libraries in your system folder...


--- Quote ---edit : i just did method 7 and have a lot ( like 50 ) error "error opening file" should i dl all the missing dll ?  thank you again
--- End quote ---
probably not.... If dependency walker can not find them it does not mean they are missing... They are simply not there where depwalker is searching them.

Does a CLEAN sdl project works?
If not, what are the errors? If yes, what did you do that it did not work?
Anyway, i don't think this is the right forum to answer this questions...

Navigation

[0] Message Index

[#] Next page

Go to full version