Bienvenue, Invité. Merci de vous connecter ou de vous inscrire. Avez-vous oublié d'activer ?

Voir les contributions

Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.


Messages - DipStax

Pages: [1]
1
Général / Test unitaire
« le: Août 22, 2020, 02:27:36 am »
Bonjour,

J'aimerai avoir quelque piste sur comment faire des tests unitaire sur les différents modules (graphique en priorité) de la SFML.
Quel lib (standard peut-être?) utilisé pour mes tests, comment rédigé mes testes efficacement en règle générale et plein d'autre petites choses au quel je n'ai surement pas pensé.

Merci d'avance.

2
Réseau / Problème résolut!
« le: Août 23, 2019, 09:23:31 pm »
Merci, c'était bien les tailles variables de "int" qui posé probléme.

3
Réseau / [Résolu] Valeur multiplié dans un packet
« le: Août 22, 2019, 07:32:45 pm »
Bonjour,
J'utilise le systéme TCP de SFML et quand j'envoie un packet constitué:

/* Serveur: */
stuff stuff_;
packet << stuff_;
// puis un envoie tout ce qu'il a de plus conventionnel

// operateur:
sf::packet& operator<<(stuff& stuff_, sf::Packet& packet) {
   packet << stuff.getID() << stuff_.getName() << static_cast<int>(stuff_.getTypeObj())
             << stuff_.getMaxSlot() << static_cast<int>(stuff_.getPiece()) << stuff_.getMinLvl()
             << stuff_.getStat() << stuff_.getNbEnchant();
}
 

A partir de "static_cast<int>(stuff_.getPiece())", toute les valeurs sont multipliés par 65536.
Et la valeur de "stuff_.getNbEnchant()" est illisible.

/* Client: */
packet >> stuff;

// operateur:
sf::packet& operator>>(stuff& stuff_, sf::Packet& packet) {
  std::string name;
  int ID, typeObj, maxSlot, piece, minLvl, stat, nbEnchant;
  packet >> ID >> name >> typeObj >> maxSlot >> piece >> minLvl >> stat;
  if (!(packet >> nbEnchant))
        std::cout << "Fail: extract nbEnchant" << std::endl;
  std:: cout << ID << ":" << name << ":" << typeObj << ":" << maxSlot << ":" << piece << ":"
                 << minLvl << ":" << stat << ":" << nbEnchant << std::endl;
}
 

Ce qui me donne quand j'envoie des valeurs:

IDNameTypeObjmaxSlotpieceminLvlstatnbEnchant
1"none"123784envoie
1"none"12196608458752524288"Fail: extract nbEnchant"reception

Merci d'avance.

4
Graphique / Re: Sprite affiche depuis une classe fille
« le: Novembre 26, 2018, 11:08:11 pm »
Ah oui merci!

5
Graphique / [Résolu] Sprite affiche depuis une classe fille
« le: Novembre 26, 2018, 09:06:23 pm »
Bonjour a tous, quand je veux afficher un sprite depuis une classe fille, elle ne s'affiche pas.


classe mère:
#include <SFML/Graphics.hpp>
#include <iostream>

#include "Bouton.h" // inutile pour résoudre le problème

Bouton::Bouton() {}

Bouton::Bouton(Vector2f pos, string txtr, short adrs, short adrs_b) {
        this->initTexture(txtr, pos);
        m_adrs = adrs;
        m_adrs_b = adrs_b;
        m_txt_ent = false;
}

Bouton::Bouton(Vector2f pos, string txtr, short adrs, short adrs_b) {
        this->initTexture(txtr, pos);
        m_adrs = adrs;
        m_adrs_b = adrs_b;
        m_txt_ent = false;
}

void Bouton::initTexture(string str_txtr, Vector2f pos) {
        m_texture.loadFromFile(str_txtr);
        m_sprite.setTexture(m_texture);
        m_sprite.setPosition(pos);
        m_itBox = m_sprite.getGlobalBounds();
}

void Bouton::draw(RenderWindow& screen) {
        screen.draw(m_sprite);
}
 

Class fille:
#include <SFML/Graphics.hpp>
#include <iostream>

#include "BoutonKey.h" // inutile pour résoudre le problème
#include "Bouton.h" // inutile pour résoudre le problème

BoutonKey::BoutonKey(Vector2f pos, Vector2f posTxt, string txtr, short adrs, short adrs_b, string txt_def, short txt_max_size, short size, Uint8 color_R, Uint8 color_G, Uint8 color_B, Uint8 color_A) {
        Bouton(pos, txtr, adrs, adrs_b);
        initTexte(posTxt, txt_def, size, color_R, color_G, color_B, color_A);
}

BoutonKey::~BoutonKey() {}

void BoutonKey::initTexte(Vector2f posTxt, string txt_def, short size, Uint8 color_R, Uint8 color_G, Uint8 color_B, Uint8 color_A) {
        m_text_aff.setString(txt_def);
        m_text_aff.setCharacterSize(size);
        m_text_aff.setFillColor(Color(color_R, color_G, color_B, color_A));
}

void BoutonKey::draw(RenderWindow& screen) {
        screen.draw(m_text_aff);
}
 

Main:
#include <SFML/Graphics.hpp>
#include <iostream>
#include "Bouton.h"
#include "BoutonKey.h"

using namespace std;
using namespace sf,

// Initialisation de la fenêtre, de toute les variables

vector<unique_ptr<Bouton>> list_bouton;

list_bouton.push_back(make_unique<BoutonKey>(Vector2f(50, 125), Vector2f(20, 20), "txtr.jpg", 1, 0, "txt def", 12, 24, 185, 185, 185, 255)); // ne s'affiche pas
list_bouton.push_back(make_unique<Bouton>(Vector2f(50, 200), "txtr.jpg", 1, 3)); // celui ci s'affiche correctement

// ouverture de la boucle d’événement,...
for (auto&& bouton : list_bouton) {
        bouton->draw(screen);
}
screen.display();
// fin de la boucle
 

Merci d'avance.

6
Général / SFML avec NuGet
« le: Juin 26, 2018, 02:27:05 pm »
J'ai installé SFML sous Visual Studio, avec NuGet.org mais çà me donne un code d'erreur:

1>gestionKey.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: static bool __cdecl sf::Keyboard::isKeyPressed(enum sf::Keyboard::Key)" (__imp_?isKeyPressed@Keyboard@sf@@SA_NW4Key@12@@Z)
1>guerrier.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: bool __thiscall sf::Texture::loadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class sf::Rect<int> const &)" (__imp_?loadFromFile@Texture@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$Rect@H@2@@Z)
1>guerrier.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Sprite::setTexture(class sf::Texture const &,bool)" (__imp_?setTexture@Sprite@sf@@QAEXABVTexture@2@_N@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class sf::Time __thiscall sf::Clock::restart(void)" (__imp_?restart@Clock@sf@@QAE?AVTime@2@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class sf::Time __thiscall sf::Clock::getElapsedTime(void)const " (__imp_?getElapsedTime@Clock@sf@@QBE?AVTime@2@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Clock::Clock(void)" (__imp_??0Clock@sf@@QAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: int __thiscall sf::Time::asMilliseconds(void)const " (__imp_?asMilliseconds@Time@sf@@QBEHXZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Time::Time(void)" (__imp_??0Time@sf@@QAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Transformable::setPosition(class sf::Vector2<float> const &)" (__imp_?setPosition@Transformable@sf@@QAEXABV?$Vector2@M@2@@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Texture::~Texture(void)" (__imp_??1Texture@sf@@QAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Texture::Texture(void)" (__imp_??0Texture@sf@@QAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class sf::Texture const & __thiscall sf::RenderTexture::getTexture(void)const " (__imp_?getTexture@RenderTexture@sf@@QBEABVTexture@2@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::RenderTexture::display(void)" (__imp_?display@RenderTexture@sf@@QAEXXZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: bool __thiscall sf::RenderTexture::create(unsigned int,unsigned int,bool)" (__imp_?create@RenderTexture@sf@@QAE_NII_N@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::RenderTexture::~RenderTexture(void)" (__imp_??1RenderTexture@sf@@UAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::RenderTexture::RenderTexture(void)" (__imp_??0RenderTexture@sf@@QAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Sprite::setTextureRect(class sf::Rect<int> const &)" (__imp_?setTextureRect@Sprite@sf@@QAEXABV?$Rect@H@2@@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(void)" (__imp_??0Sprite@sf@@QAE@XZ)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(class sf::Sprite const &)" (__imp_??0Sprite@sf@@QAE@ABV01@@Z)
1>MainPerso.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: static class sf::Color const sf::Color::White" (__imp_?White@Color@sf@@2V12@B)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __int64 __thiscall sf::Time::asMicroseconds(void)const " (__imp_?asMicroseconds@Time@sf@@QBE_JXZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class sf::Transform const & __thiscall sf::Transformable::getTransform(void)const " (__imp_?getTransform@Transformable@sf@@QBEABVTransform@2@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Transformable::setPosition(float,float)" (__imp_?setPosition@Transformable@sf@@QAEXMM@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::Transformable::~Transformable(void)" (__imp_??1Transformable@sf@@UAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Transformable::Transformable(void)" (__imp_??0Transformable@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::View::setCenter(float,float)" (__imp_?setCenter@View@sf@@QAEXMM@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::View::View(class sf::Rect<float> const &)" (__imp_??0View@sf@@QAE@ABV?$Rect@M@1@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) class sf::Transform & __cdecl sf::operator*=(class sf::Transform &,class sf::Transform const &)" (__imp_??Xsf@@YAAAVTransform@0@AAV10@ABV10@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class sf::Vector2<unsigned int> __thiscall sf::Texture::getSize(void)const " (__imp_?getSize@Texture@sf@@QBE?AV?$Vector2@I@2@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: bool __thiscall sf::Font::loadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadFromFile@Font@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Font::~Font(void)" (__imp_??1Font@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Font::Font(void)" (__imp_??0Font@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::VertexArray::setPrimitiveType(enum sf::PrimitiveType)" (__imp_?setPrimitiveType@VertexArray@sf@@QAEXW4PrimitiveType@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::VertexArray::resize(unsigned int)" (__imp_?resize@VertexArray@sf@@QAEXI@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: class sf::Vertex & __thiscall sf::VertexArray::operator[](unsigned int)" (__imp_??AVertexArray@sf@@QAEAAVVertex@1@I@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::VertexArray::VertexArray(void)" (__imp_??0VertexArray@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: unsigned char const * __thiscall sf::Image::getPixelsPtr(void)const " (__imp_?getPixelsPtr@Image@sf@@QBEPBEXZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: bool __thiscall sf::Image::loadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadFromFile@Image@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Image::~Image(void)" (__imp_??1Image@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Image::Image(void)" (__imp_??0Image@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: static class sf::Color const sf::Color::Red" (__imp_?Red@Color@sf@@2V12@B)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: static class sf::Color const sf::Color::Black" (__imp_?Black@Color@sf@@2V12@B)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Window::display(void)" (__imp_?display@Window@sf@@QAEXXZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Window::setFramerateLimit(unsigned int)" (__imp_?setFramerateLimit@Window@sf@@QAEXI@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Window::setIcon(unsigned int,unsigned int,unsigned char const *)" (__imp_?setIcon@Window@sf@@QAEXIIPBE@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Window::setSize(class sf::Vector2<unsigned int> const &)" (__imp_?setSize@Window@sf@@QAEXABV?$Vector2@I@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: bool __thiscall sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QBE_NXZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (__imp_?setFillColor@Shape@sf@@QAEXABVColor@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::String::String(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::locale const &)" (__imp_??0String@sf@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVlocale@3@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::RectangleShape::setSize(class sf::Vector2<float> const &)" (__imp_?setSize@RectangleShape@sf@@QAEXABV?$Vector2@M@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::RectangleShape::RectangleShape(class sf::Vector2<float> const &)" (__imp_??0RectangleShape@sf@@QAE@ABV?$Vector2@M@1@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Text::setFillColor(class sf::Color const &)" (__imp_?setFillColor@Text@sf@@QAEXABVColor@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Text::setCharacterSize(unsigned int)" (__imp_?setCharacterSize@Text@sf@@QAEXI@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Text::setFont(class sf::Font const &)" (__imp_?setFont@Text@sf@@QAEXABVFont@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: void __thiscall sf::Text::setString(class sf::String const &)" (__imp_?setString@Text@sf@@QAEXABVString@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Text::Text(void)" (__imp_??0Text@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: static class sf::Vector2<int> __cdecl sf::Mouse::getPosition(class sf::Window const &)" (__imp_?getPosition@Mouse@sf@@SA?AV?$Vector2@H@2@ABVWindow@2@@Z)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::Drawable::Drawable(void)" (__imp_??0Drawable@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::VertexArray::~VertexArray(void)" (__imp_??1VertexArray@sf@@UAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::RectangleShape::~RectangleShape(void)" (__imp_??1RectangleShape@sf@@UAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::Text::~Text(void)" (__imp_??1Text@sf@@UAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ)
1>RPG.obj : error LNK2001: symbole externe non résolu "__declspec(dllimport) public: virtual __thiscall sf::Drawable::~Drawable(void)" (__imp_??1Drawable@sf@@UAE@XZ)

Bien sur j'ai installé les 5 modules disponible de la SFML avec NeGut.

7
Général / Re: Erreur de Compilation...
« le: Septembre 30, 2017, 08:40:39 pm »
En faite tout est bon j'ai essais de changer de version de SFML et voir ce avec les différents type de MinGW de Code::Block et sa marche!!! Merci quand même! ;)

8
Général / Re: Erreur de Compilation...
« le: Septembre 30, 2017, 07:50:12 pm »
Ban j'ai bien mis les -d mais maintenant j'ai tout c'est erreur:
mingw32-g++.exe -L"C:\Program Files (x86)\SFML-2.4.2\lib" -o bin\Debug\tst_SFML.exe obj\Debug\main.o   -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d -lopengl32 -lfreetype -ljpeg -lwinmm -lgdi32
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(CircleShape.cpp.obj): In function `ZN2sf11CircleShapeC2Efj':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/CircleShape.cpp:37: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(CircleShape.cpp.obj): In function `ZN2sf11CircleShapeD0Ev':
D:/sfml-release/_Sources/SFML/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `operator delete(void*, unsigned int)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(CircleShape.cpp.obj):CircleShape.cpp:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj): In function `ZN2sf12RenderWindowC2Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderWindow.cpp:35: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj): In function `ZN2sf12RenderWindowC2ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderWindow.cpp:42: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj): In function `ZN2sf12RenderWindowC2EP6HWND__RKNS_15ContextSettingsE':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderWindow.cpp:50: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj): In function `ZN2sf12RenderWindowD0Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderWindow.cpp:61: undefined reference to `operator delete(void*, unsigned int)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj): In function `ZNK2sf12RenderWindow7captureEv':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderWindow.cpp:83: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj):RenderWindow.cpp:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Shape.cpp.obj): In function `ZN2sf5ShapeD0Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Shape.cpp:60: undefined reference to `operator delete(void*, unsigned int)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Shape.cpp.obj): In function `ZN2sf5ShapeC2Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Shape.cpp:169: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Shape.cpp.obj):Shape.cpp:(.eh_frame+0x257): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Shape.cpp.obj):Shape.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EED1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Shape.cpp.obj):Shape.cpp:(.eh_frame$_ZNSt12_Vector_baseIN2sf6VertexESaIS1_EED2Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(RenderTarget.cpp.obj): In function `ZN2sf12RenderTargetD0Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderTarget.cpp:95: undefined reference to `operator delete(void*, unsigned int)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj): In function `ZN2sf7TextureC2Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Texture.cpp:72: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj): In function `ZN2sf7TextureC2ERKS0_':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Texture.cpp:88: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj): In function `ZN2sf7Texture6createEjj':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Texture.cpp:140: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj): In function `ZN2sf7Texture12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_4RectIiEE':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Texture.cpp:211: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj): In function `ZN2sf7Texture14loadFromMemoryEPKvjRKNS_4RectIiEE':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Texture.cpp:219: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Texture.cpp:227: more undefined references to `_Unwind_Resume' follow
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):Texture.cpp:(.eh_frame+0x53): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):Texture.cpp:(.eh_frame$_ZNSt6vectorIhSaIhEEC1ERKS1_+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):Texture.cpp:(.eh_frame$_ZNSt6vectorIhSaIhEED1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):Texture.cpp:(.eh_frame$_ZNSt6vectorIhSaIhEEC1EjRKS0_+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):Texture.cpp:(.eh_frame$_ZNSt12_Vector_baseIhSaIhEEC2EjRKS0_+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Texture.cpp.obj):Texture.cpp:(.eh_frame$_ZNSt12_Vector_baseIhSaIhEED2Ev+0x13): more undefined references to `__gxx_personality_v0' follow
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj): In function `ZN2sf11VertexArrayC2ENS_13PrimitiveTypeEj':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/VertexArray.cpp:45: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj): In function `ZNSt6vectorIN2sf6VertexESaIS1_EEC1EjRKS2_':
C:/Dev/MinGW32-PosixDwarf610r0/lib/gcc/i686-w64-mingw32/6.1.0/include/c++/bits/stl_vector.h:280: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj): In function `ZNSt12_Vector_baseIN2sf6VertexESaIS1_EEC2EjRKS2_':
C:/Dev/MinGW32-PosixDwarf610r0/lib/gcc/i686-w64-mingw32/6.1.0/include/c++/bits/stl_vector.h:135: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj): In function `ZNSt6vectorIN2sf6VertexESaIS1_EE17_M_default_appendEj':
C:/Dev/MinGW32-PosixDwarf610r0/lib/gcc/i686-w64-mingw32/6.1.0/include/c++/bits/vector.tcc:569: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj): In function `ZNSt6vectorIN2sf6VertexESaIS1_EE19_M_emplace_back_auxIJRKS1_EEEvDpOT_':
C:/Dev/MinGW32-PosixDwarf610r0/lib/gcc/i686-w64-mingw32/6.1.0/include/c++/bits/vector.tcc:427: undefined reference to `_Unwind_Resume'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):C:/Dev/MinGW32-PosixDwarf610r0/lib/gcc/i686-w64-mingw32/6.1.0/include/c++/bits/stl_uninitialized.h:522: more undefined references to `_Unwind_Resume' follow
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj): In function `ZN2sf11VertexArrayD0Ev':
D:/sfml-release/_Sources/SFML/include/SFML/Graphics/VertexArray.hpp:45: undefined reference to `operator delete(void*, unsigned int)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame+0x4b): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EEC1Ev+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EEC1EjRKS2_+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt12_Vector_baseIN2sf6VertexESaIS1_EEC2EjRKS2_+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EE15_M_erase_at_endEPS1_+0x13): undefined reference to `__gxx_personality_v0'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(VertexArray.cpp.obj):VertexArray.cpp:(.eh_frame$_ZNSt6vectorIN2sf6VertexESaIS1_EE17_M_default_appendEj+0x13): more undefined references to `__gxx_personality_v0' follow
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(Transformable.cpp.obj): In function `ZN2sf13TransformableD0Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/Transformable.cpp:51: undefined reference to `operator delete(void*, unsigned int)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(GLCheck.cpp.obj): In function `ZN2sf4priv12glCheckErrorEPKcjS2_':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:45: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:46: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:47: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:54: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:55: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:61: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:62: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:68: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)'
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(GLCheck.cpp.obj):D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:69: more undefined references to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*)' follow
C:\Program Files (x86)\SFML-2.4.2\lib/libsfml-graphics-s-d.a(GLCheck.cpp.obj): In function `ZN2sf4priv12glCheckErrorEPKcjS2_':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_of(char const*, unsigned int) const'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/GLCheck.cpp:104: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned int, unsigned int) const'
Process terminated with status 1 (0 minute(s), 8 second(s))
50 error(s), 0 warning(s) (0 minute(s), 8 second(s))

9
Général / Re: Erreur de Compilation...
« le: Septembre 30, 2017, 12:17:03 pm »
Voila le screens de mes link settings, avec bien sur les paramètres généraux le SFML_STATIC dans #defines et les liens de compilation et de linkages.

Et pour de ce qui est du re-compilage de SFML moi même, j’essayerai si tout mes link son bon. Mais j'ai déjà commencé à regarder et je n'y comprend rien...  ???

10
Général / Erreur de Compilation... [Résolu]
« le: Septembre 29, 2017, 11:45:26 pm »
Bonjour, j'essais d'installer SFML depuis pas mal de temps mais je n'y arrive pas. J'ai c'est message d'erreur qui s'affiche, quand j'utilise le code d'exemple dans le tuto:

C:\Program Files (x86)\SFML-2.4.2\lib\libsfml-s.a(CircleShape.cpp.odj):CircleShape.cpp           unefined reference to '_Unwind_Resume'C:\Program Files (x86)\SFML-2.4.2\lib\libsfml-s.a(CircleShape.cpp.odj):CircleShape.cpp:(.text$_ZN2sfllCircleShapeD0Ev[__ZN2sfllCircleShapeD0Ev]+0x24)           unefined reference to 'operator delete(void*, unsigned int)'
J'ai installer Code::Block version 16.01 avec la dernier version de GCC et la version x32 MinGW de SFML, tout les paramétrés de compilation son comme présenté dans le tuto. Donc merci de m'aidé.  ;)

Pages: [1]
anything