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 13642 fois)

0 Membres et 1 Invité sur ce sujet

Onigiri

  • Newbie
  • *
  • Messages: 18
    • Voir le profil
Re : undefined reference to _Unwind_Resume
« Réponse #15 le: Septembre 11, 2013, 07:42:24 pm »

J'ai télécharger le compilo ici: http://www.codeblocks.org/downloads/26

J'ai pris: codeblocks-12.11mingw-setup.exe

Voici ce que j'obtient avec gcc -v:

-------------- Clean: Debug in TestSFML (compiler: GNU GCC Compiler)---------------

Cleaned "TestSFML - Debug"

-------------- Build: Debug in TestSFML (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -fexceptions -v  -g -DSFML_DYNAMIC    -IF:\SFML\SFML-2.1\include  -c F:\C++\TestSFML\main.cpp -o obj\Debug\main.o
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../../src/gcc-4.7.1/configure --build=mingw32 --enable-languages=c,c++,ada,fortran,objc,obj-c++ --enable-threads=win32 --enable-libgomp --enable-lto --enable-fully-dynamic-string --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gnu-ld --disable-nls --disable-win32-registry --disable-symvers --disable-build-poststage1-with-cxx --disable-werror --prefix=/mingw32tdm --with-local-prefix=/mingw32tdm --enable-cxx-flags='-fno-function-sections -fno-data-sections' --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs
Thread model: win32
gcc version 4.7.1 (tdm-1)
COLLECT_GCC_OPTIONS='-Wall' '-fexceptions' '-v' '-g' '-D' 'SFML_DYNAMIC' '-I' 'F:\SFML\SFML-2.1\include' '-c' '-o' 'obj\Debug\main.o' '-mtune=i386' '-march=i386'
 c:/program files (x86)/codeblocks/mingw/bin/../libexec/gcc/mingw32/4.7.1/cc1plus.exe -quiet -v -I F:\SFML\SFML-2.1\include -iprefix c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/ -D SFML_DYNAMIC F:\C++\TestSFML\main.cpp -quiet -dumpbase main.cpp -mtune=i386 -march=i386 -auxbase-strip obj\Debug\main.o -g -Wall -version -fexceptions -o C:\Users\Magail\AppData\Local\Temp\ccMyMBoj.s
GNU C++ (tdm-1) version 4.7.1 (mingw32)
   compiled by GNU C version 4.7.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../mingw32/include"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include/c++"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include/c++/mingw32"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include/c++/backward"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/../../../../include"
ignoring duplicate directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/include-fixed"
ignoring nonexistent directory "c:/program files (x86)/codeblocks/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.1/../../../../mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 F:\SFML\SFML-2.1\include
 c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++
 c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/mingw32
 c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include/c++/backward
 c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include
 c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/../../../../include
 c:\program files (x86)\codeblocks\mingw\bin\../lib/gcc/mingw32/4.7.1/include-fixed
End of search list.
GNU C++ (tdm-1) version 4.7.1 (mingw32)
   compiled by GNU C version 4.7.1, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 1b05afeca9d712f769248af52f554d5e
COLLECT_GCC_OPTIONS='-Wall' '-fexceptions' '-v' '-g' '-D' 'SFML_DYNAMIC' '-I' 'F:\SFML\SFML-2.1\include' '-c' '-o' 'obj\Debug\main.o' '-mtune=i386' '-march=i386'
 c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/as.exe -v -I F:\SFML\SFML-2.1\include -o obj\Debug\main.o C:\Users\Magail\AppData\Local\Temp\ccMyMBoj.s
GNU assembler version 2.22 (mingw32) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=c:/program files (x86)/codeblocks/mingw/bin/../libexec/gcc/mingw32/4.7.1/;c:/program files (x86)/codeblocks/mingw/bin/../libexec/gcc/;c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/
LIBRARY_PATH=c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/;c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/;c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/lib/;c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../
COLLECT_GCC_OPTIONS='-Wall' '-fexceptions' '-v' '-g' '-D' 'SFML_DYNAMIC' '-I' 'F:\SFML\SFML-2.1\include' '-c' '-o' 'obj\Debug\main.o' '-mtune=i386' '-march=i386'
mingw32-g++.exe -LF:\SFML\SFML-2.1\lib  -o bin\Debug\TestSFML.exe obj\Debug\main.o   -lsfml-graphics-d -lsfml-window-d -lsfml-system-d 
Output size is 742.16 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Messages: 32498
    • Voir le profil
    • SFML's website
    • E-mail
Re : undefined reference to _Unwind_Resume
« Réponse #16 le: Septembre 11, 2013, 08:47:12 pm »
Ah, t'as juste le compilo fourni par Code::Blocks 12.11, fallait le dire. Dans ce cas la version SJLJ de SFML fera l'affaire.
Laurent Gomila - SFML developer

Onigiri

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

C'est bon  :) :) :)

Ca fonctionne!!!

Bon j'ai plus qu'à remplacer l'ancienne syntaxe de mes projet pour la SFML 2.

Merci Beaucoup

G.

  • Hero Member
  • *****
  • Messages: 1593
    • Voir le profil
Re : [Resolu] undefined reference to _Unwind_Resume
« Réponse #18 le: Septembre 11, 2013, 11:47:07 pm »
Note que le tutoriel sur compiler SFML sur codeblocks suggère fortement que la version de la SFML à utiliser avec le compilateur de base de c::b est la TDM SJLJ. ;)