Bienvenue, Invité. Merci de vous connecter ou de vous inscrire.
Avez-vous perdu votre e-mail d'activation ?

Auteur Sujet: [Resolu] undefined reference to _Unwind_Resume  (Lu 12816 fois)

0 Membres et 1 Invité sur ce sujet

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
[Resolu] undefined reference to _Unwind_Resume
« le: Septembre 08, 2013, 08:24:41 pm »
Bonjour,

J'ai un projet qui marche sur un pc et sur un autre, aucune fenêtre s'affiche.
Apres quelques recherches, il s'agit d'un bug à cause des cartes graphiques (la mienne c'est NVidia)
La solution, c'était de compiler en statique mais il y a un autre problème qui survient:

F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD1Ev[sf::Sprite::~Sprite()]+0x155)||undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD0Ev[sf::Sprite::~Sprite()]+0x15d)||undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Drawable.o):Drawable.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| more undefined references to `_Unwind_Resume' follow|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(Image.o):Image.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| more undefined references to `_Unwind_Resume' follow|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(RenderTarget.o):RenderTarget.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| more undefined references to `_Unwind_Resume' follow|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-graphics-s.a(GraphicsContext.o):GraphicsContext.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(VideoMode.o):VideoMode.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp|| more undefined references to `_Unwind_Resume' follow|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Window.o):Window.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Context.o):Context.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(Context.o):Context.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(VideoModeSupport.o):VideoModeSupport.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp|| more undefined references to `_Unwind_Resume' follow|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImpl.o):WindowImpl.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImplWin32.o):WindowImplWin32.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImplWin32.o):WindowImplWin32.cpp|| undefined reference to `_Unwind_Resume'|
F:\SFML\SFML-1.6\lib\libsfml-window-s.a(WindowImplWin32.o):WindowImplWin32.cpp|| undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
« Modifié: Septembre 11, 2013, 09:31:40 pm par Onigiri »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32504
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #1 le: Septembre 09, 2013, 09:33:09 am »
Tu devrais vraiment passer à SFML 2.
Laurent Gomila - SFML developer

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #2 le: Septembre 09, 2013, 11:58:32 am »
Pourquoi? Je ne fais que contourner le problème.

En plus, elle n'est pas encore fini

Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32504
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #3 le: Septembre 09, 2013, 12:26:48 pm »
Citer
Pourquoi?
Parce qu'elle n'a pas ce problème.

Citer
En plus, elle n'est pas encore fini
Si. On en est même à SFML 2.1.
Laurent Gomila - SFML developer

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #4 le: Septembre 10, 2013, 07:37:13 pm »

Ok, je viens d'essayer et ca compile mais ca se lance pas. C'est quoi libstdc++-6.dll? C'est pas fourni?

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #5 le: Septembre 10, 2013, 09:17:11 pm »

Je viens de la trouver, mais ca segfault au lancement  :'(

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: F:\C++\TestSFML\
Adding source dir: F:\C++\TestSFML\
Adding file: bin\Debug\TestSFML.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
Child process PID: 15464
Program received signal SIGSEGV, Segmentation fault.
In std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_Alloc_hider::_Alloc_hider (this=0x0, __dat=0x66086010, __a=@0x28faef) at D:\developpement\sfml\sfml\src\SFML\System\String.cpp:85 ()

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #6 le: Septembre 10, 2013, 09:18:00 pm »

A cette ligne:     sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");

Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32504
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #7 le: Septembre 10, 2013, 09:38:36 pm »
Tu as téléchargé quelle archive de SFML ? Tu as quel compilo ? Tu as "trouvé" où libstdc++6.dll ? (c'est la bibliothèque standard C++, elle est fournie dans le répertoire "bin" de ton compilo)
Laurent Gomila - SFML developer

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #8 le: Septembre 10, 2013, 10:03:02 pm »

Ca fait beaucoup de questions.

J'ai télécharger "SFML-2.1-windows-gcc-4.7-mingw-32bits.zip"

Mon compilo, c'est "mingw32-gcc-4.4.1"

J'ai trouvé libstdc++6.dll ici: https://code.google.com/p/wtfu/downloads/detail?name=libstdc%2B%2B-6.dll&can=2&q=

Et dans le répertoire bin de mon compilo, il n'y a pas de libstdc++-6.dll  :'(

Je code sous Code Blocks 10.05

Merci  :)


Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32504
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #9 le: Septembre 11, 2013, 07:37:31 am »
Il faut recompiler SFML (ou passer à un compilo récent), aucune des versions précompilées ne sera compatible avec ton gcc 4.4.
Laurent Gomila - SFML developer

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #10 le: Septembre 11, 2013, 08:51:03 am »

J'ai installé la version la plus récente: code blocks 12.11 et mingw32-gcc-4.7.1

J'ai refais les linkages et ca compile  :)

Mais j'ai ce message maintenant:

Le point d'entrée de procédure __gxx_personality_v0 est introuvable dans la bibliothèque de liens dynamiques libstdc++-6.dll.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32504
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #11 le: Septembre 11, 2013, 08:59:05 am »
Tu as bien pris le libstdc++-6.dll de ton compilo ? Tu as téléchargé quelle archive de SFML ? Peux-tu me montrer le résultat d'un "gcc -v" dans une console ?
Laurent Gomila - SFML developer

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #12 le: Septembre 11, 2013, 09:38:00 am »

Ok, j'essayerai ce soir  :)

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #13 le: Septembre 11, 2013, 06:20:33 pm »

Oui, j'ai bien pris le libstdc++-6.dll de mon compilo qui est mingw32-gcc-4.7.1.

J'ai pris SFML-2.1-windows-gcc-4.7-mingw-32bits.zip

Donc je pense que c'est bon  ;)

Resultat de la compilation:

mingw32-g++.exe -Wall -fexceptions  -O2  -Wall -DSFML_DYNAMIC    -IF:\SFML\SFML-2.1\include  -c F:\C++\TestSFML\main.cpp -o obj\Release\main.o
mingw32-g++.exe -LF:\SFML\SFML-2.1\lib  -o bin\Release\TestSFML.exe obj\Release\main.o   -s  -lsfml-graphics -lsfml-window -lsfml-system
Output size is 329.50 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings (0 minutes, 1 seconds)
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32504
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #14 le: Septembre 11, 2013, 07:24:54 pm »
Tu as téléchargé ton compilo où ? Peux-tu me montrer le résultat d'un "gcc -v" dans une console ?
Laurent Gomila - SFML developer