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

Auteur Sujet: Segfault  (Lu 6208 fois)

0 Membres et 1 Invité sur ce sujet

Eroy

  • Jr. Member
  • **
  • Messages: 60
    • Voir le profil
    • E-mail
Re : Segfault
« Réponse #15 le: Mai 04, 2013, 11:48:32 pm »
Tu t'es pas trompé dans les dll liées genre t'aurais mis les releases alors que tu compile en debug ?

DaKanibal

  • Newbie
  • *
  • Messages: 12
    • Voir le profil
Re : Segfault
« Réponse #16 le: Mai 05, 2013, 12:04:06 am »
Non tout est bien mis, les -d avec le débug, les normales en release, et les bonnes options de link dans c::b :/

Eroy

  • Jr. Member
  • **
  • Messages: 60
    • Voir le profil
    • E-mail
Re : Segfault
« Réponse #17 le: Mai 05, 2013, 12:59:29 am »
T'as bien compile sfml en dynamique ?
Je crois que j'avais eu ce genre de soucis quand j'avais compilé un moment... Déjà si t'as compilé en 64 bits tu devrais essayer en 32.

Sinon tu peux essayer avec mon build qui est fait avec mingw472 et c++11, par contre c'est pas la dernière version et doit y avoir deux ou trois modifs sans trop d'importance. Si ça marche avec ça t'es sûr que ça vient de ton build.
http://eroy.eodeweb.fr/build_32_c++11.rar (utilises lib, bin et inludes, n'en oublies pas une partie :p. Jpense que ça doit quand même marcher sans utiliser ces headers mais on sait jamais..)

DaKanibal

  • Newbie
  • *
  • Messages: 12
    • Voir le profil
Re : Segfault
« Réponse #18 le: Mai 05, 2013, 01:14:28 am »
Oui, compilé en dynamique, je teste ton build

Ca me met énormément d'erreurs a la compilation maintenant >.<
EDIT:
Plus qu'une seule après avoir mis l'option C11++ (...oui bon hein)
"cc1plus.exe: error: unrecognized command line option "-std=c++11""
Là, ça doit être lié au compilateur ?

EDIT:
Finalement, semblerait que l'option -std=c++0x fonctionne aussi pour C11++, et j'ai un gros paquet d'erreurs:
Citation de: Build messages
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\include\c++\cwchar|159|error: '::swprintf' has not been declared|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.0\include\c++\cwchar|166|error: '::vswprintf' has not been declared|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|85|error: ISO C++ forbids initialization of member 'x'|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|85|error: making 'x' static|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|86|error: ISO C++ forbids initialization of member 'y'|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|86|error: making 'y' static|
C:\SFML-2.0\include\SFML\System\Vector2.inl||In constructor 'sf::Vector2<T>::Vector2(T, T)':|
C:\SFML-2.0\include\SFML\System\Vector2.inl|43|error: 'T sf::Vector2<T>::x' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector2.inl|44|error: 'T sf::Vector2<T>::y' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector2.inl||In constructor 'sf::Vector2<T>::Vector2(const sf::Vector2<U>&)':|
C:\SFML-2.0\include\SFML\System\Vector2.inl|54|error: 'T sf::Vector2<T>::x' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector2.inl|55|error: 'T sf::Vector2<T>::y' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector3.hpp|87|error: ISO C++ forbids initialization of member 'x'|
C:\SFML-2.0\include\SFML\System\Vector3.hpp|87|error: making 'x' static|
C:\SFML-2.0\include\SFML\System\Vector3.hpp|88|error: ISO C++ forbids initialization of member 'y'|
C:\SFML-2.0\include\SFML\System\Vector3.hpp|88|error: making 'y' static|
C:\SFML-2.0\include\SFML\System\Vector3.hpp|89|error: ISO C++ forbids initialization of member 'z'|
C:\SFML-2.0\include\SFML\System\Vector3.hpp|89|error: making 'z' static|
C:\SFML-2.0\include\SFML\System\Vector3.inl||In constructor 'sf::Vector3<T>::Vector3(T, T, T)':|
C:\SFML-2.0\include\SFML\System\Vector3.inl|43|error: 'T sf::Vector3<T>::x' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector3.inl|44|error: 'T sf::Vector3<T>::y' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector3.inl|45|error: 'T sf::Vector3<T>::z' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector3.inl||In constructor 'sf::Vector3<T>::Vector3(const sf::Vector3<U>&)':|
C:\SFML-2.0\include\SFML\System\Vector3.inl|55|error: 'T sf::Vector3<T>::x' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector3.inl|56|error: 'T sf::Vector3<T>::y' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector3.inl|57|error: 'T sf::Vector3<T>::z' is a static data member; it can only be initialized at its definition|
C:\SFML-2.0\include\SFML\System\Vector2.hpp||In instantiation of 'sf::Vector2<unsigned int>':|
C:\SFML-2.0\include\SFML\Graphics\Image.hpp|260|instantiated from here|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|85|error: ISO C++ forbids in-class initialization of non-const static member 'sf::Vector2<unsigned int>::x'|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|86|error: ISO C++ forbids in-class initialization of non-const static member 'sf::Vector2<unsigned int>::y'|
C:\SFML-2.0\include\SFML\System\Vector2.hpp||In instantiation of 'sf::Vector2<float>':|
C:\SFML-2.0\include\SFML\Graphics\View.hpp|272|instantiated from here|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|85|error: ISO C++ forbids in-class initialization of non-const static member 'sf::Vector2<float>::x'|
C:\SFML-2.0\include\SFML\System\Vector2.hpp|86|error: ISO C++ forbids in-class initialization of non-const static member 'sf::Vector2<float>::y'|
D:\Animak\main.cpp||In function 'int main()':|
D:\Animak\main.cpp|5|error: expected primary-expression before '/' token|
D:\Animak\main.cpp|6|error: expected primary-expression before 'shape'|
D:\Animak\main.cpp|6|error: expected ';' before 'shape'|
D:\Animak\main.cpp|7|error: 'shape' was not declared in this scope|
C:\SFML-2.0\include\SFML\System\Vector2.inl||In instantiation of 'sf::Vector2<T>::Vector2(T, T) [with T = float]':|
C:\SFML-2.0\include\SFML\Graphics\RectangleShape.hpp|51|instantiated from here|
C:\SFML-2.0\include\SFML\System\Vector2.inl|42|warning: unused parameter 'X'|
C:\SFML-2.0\include\SFML\System\Vector2.inl|42|warning: unused parameter 'Y'|
||=== Build finished: 30 errors, 5 warnings (0 minutes, 1 seconds) ===|
« Modifié: Mai 05, 2013, 01:28:57 am par DaKanibal »

DaKanibal

  • Newbie
  • *
  • Messages: 12
    • Voir le profil
Re : Segfault
« Réponse #19 le: Mai 05, 2013, 02:02:28 am »
Ok, problème trouvé, c::b remettait automatiquement le chemin vers MinGW a "C:\Program Files (x86)\CodeBlocks\MinGW"... qui n'était plus à jour.
Du coup, j'ai remplacé le dossier vu qu'il ne voulait pas entendre que celui à jour était là : "C:\MinGW"

...
Désolé de la perte de temps, et merci de votre aide !

http://up.t0m-s.be/file.php?h=R30759765e1dd317c3d56a49cf653ad0a !! :))
« Modifié: Mai 05, 2013, 02:05:20 am par DaKanibal »

Eroy

  • Jr. Member
  • **
  • Messages: 60
    • Voir le profil
    • E-mail
Re : Segfault
« Réponse #20 le: Mai 05, 2013, 08:48:25 am »
Ca va tu nous as pas fait perdre trop de temps  :P

DaKanibal

  • Newbie
  • *
  • Messages: 12
    • Voir le profil
Re : Segfault
« Réponse #21 le: Mai 05, 2013, 12:59:27 pm »
Oh juste deux jours :°

Eroy

  • Jr. Member
  • **
  • Messages: 60
    • Voir le profil
    • E-mail
Re : Segfault
« Réponse #22 le: Mai 05, 2013, 01:36:22 pm »
Pour nous c'est juste le temps d'écrire un message, c'est toi qui a perdu deux jours :p
Mais potentiellement t'en as fait gagné à tout ceux qui auront le même problème que toi. x3