c++ - program linked to SFML dlls wont start, returns 0xC000007B or missing __gxx_personality_v0 -


i trying compile example sfml page http://www.sfml-dev.org/tutorials/2.3/start-cb.php (at bottom)

i dowloaded version gcc 4.9.2 dw2, set needed (linker, directories) , compiled without errors.

when application starts says needs .dll files copied them sfml/bin directory. says the procedure entry point __gxx_personality_v0 not located in dynamic link library libstdc++-6.dll (libstdc++-6 there copied mingw/bin)

or the pro... _zst24__throw_out_of_range_fmtpkcz in same dll

on sfml page there note:

there multiple variants of gcc windows, incompatible each other (different exception management, threading model, etc.). make sure select package corresponds version use. if unsure, check of libgcc_s_sjlj-1.dll or libgcc_s_dw2-1.dll files present in mingw/bin folder. if mingw installed along code::blocks, have sjlj version. if feel version of gcc can't work precompiled sfml libraries, don't hesitate build sfml yourself, it's not complicated.

i tried compile linked dw2 , sjlj sfml versions in both devc++ , code::blocks resulting in errors above. have both dlls in compilers instalation folders. wrong ides? tired of guessing new ide/compiler<->sfml_version combinations

later tried build sfml myself using cmake - when launching .exe thsese dlls error 0xc000007b.

i have tried link statically, added required libraries in linker in right order returns undefined reference ... many times (in both ides).

i want make program run, few days ago compiled other example using sdl library without problems, runs perfectly.

sfml tries 32bit , same compilers

due c++ abi incompatibility sfml libraries must built same exact compiler application gets built with.

if don't use this mingw compiler, you'll have rebuild sfml yourself.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -