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 - arzop

Pages: [1]
1
Général / [Resolu]Probleme configuration Visual Studio
« le: Juillet 10, 2016, 11:14:13 am »
En effet,  c etait bien ca.

Merci a toi

2
Général / Probleme configuration Visual Studio
« le: Juillet 09, 2016, 06:31:56 pm »
Bien le bonjour, suite à une installation completement foireuse sur code block, je tente ma chance sur visual studio mais malheuresement, cela ne marche pas, voici les erreurs que j obtiens:

1>------ Build started: Project: Visual, Configuration: Debug Win32 ------
1>  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>
1>  cl /c /ZI /W3 /WX- /sdl /Od /Oy- /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:prompt main.cpp
1>
1>  main.cpp
1>  Microsoft (R) Incremental Linker Version 14.00.24210.0
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>
1>  "/OUT:E:\C++\Visual\Debug\Visual.exe" /INCREMENTAL "sfml-graphics-d.lib" "sfml-window-d.lib" "sfml-system-s.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FASTLINK "/PDB:E:\C++\Visual\Debug\Visual.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:E:\C++\Visual\Debug\Visual.lib" /MACHINE:X86 Debug\main.obj
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ) referenced in function _main
1>E:\C++\Visual\Debug\Visual.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Merci

3
Général / Re : Configuration SFML code block
« le: Juillet 03, 2016, 06:27:04 pm »
En telechargeant, le TDM64-GCC-4.8.1, voici ce que j'obtiens:

||=== Build: Debug in testSFML (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lsfml-graphics-s-d|
ld.exe||cannot find -lsfml-window-s-d|
ld.exe||cannot find -lsfml-system-s-d|
||error: ld returned 1 exit status|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

4
Général / Re : Configuration SFML code block
« le: Juillet 03, 2016, 10:30:43 am »
Bien, j ai tout desinstalle et re installe avec (je crois) les bonnes versions:

GCC 4.8.1 TDM (SJLJ) - 32-bit
https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/Previous/1.1309.0/tdm-gcc-4.8.1.exe/download

J ai lie la biblihoteque static (j ai joint les screenshots au cas ou) mais voila:

||=== Build: Debug in testSFML (compiler: GNU GCC Compiler) ===|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderStates.cpp.obj)||In function `_static_initialization_and_destruction_0':|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderStates.cpp|102|undefined reference to `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderStates.cpp|102|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderStates.cpp|102|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderStates.cpp|102|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(CircleShape.cpp.obj)||In function `ZN2sf11CircleShapeC2Efj':|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\CircleShape.cpp|35|undefined reference to `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\CircleShape.cpp|35|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\CircleShape.cpp|37|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\CircleShape.cpp|37|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\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 `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|35|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|35|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|35|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\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 `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|42|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|42|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|42|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\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 `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|50|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|50|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|50|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderWindow.cpp.obj)||In function `ZN2sf12RenderWindowD2Ev':|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|58|undefined reference to `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|58|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|58|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|58|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderWindow.cpp.obj)||In function `ZNK2sf12RenderWindow7captureEv':|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|80|undefined reference to `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|80|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|92|undefined reference to `glReadPixels@28'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|95|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\RenderWindow.cpp|95|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderWindow.cpp.obj)||In function `ZNSt6vectorIhSaIhEEC1EjRKhRKS0_':|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|295|undefined reference to `__gxx_personality_sj0'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|295|undefined reference to `_Unwind_SjLj_Register'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|297|undefined reference to `_Unwind_SjLj_Resume'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|297|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderWindow.cpp.obj)||In function `ZNSt6vectorIhSaIhEED1Ev':|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|414|undefined reference to `__gxx_personality_sj0'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|414|undefined reference to `_Unwind_SjLj_Register'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|416|undefined reference to `_Unwind_SjLj_Resume'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|416|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderWindow.cpp.obj)||In function `ZNSt12_Vector_baseIhSaIhEEC2EjRKS0_':|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|134|undefined reference to `__gxx_personality_sj0'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|134|undefined reference to `_Unwind_SjLj_Register'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|135|undefined reference to `_Unwind_SjLj_Resume'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|135|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(RenderWindow.cpp.obj)||In function `ZNSt12_Vector_baseIhSaIhEED2Ev':|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|159|undefined reference to `__gxx_personality_sj0'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|159|undefined reference to `_Unwind_SjLj_Register'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|161|undefined reference to `_Unwind_SjLj_Resume'|
c:\dev\mingw32-tdm481\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h|161|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(Shape.cpp.obj)||In function `ZN2sf5ShapeD2Ev':|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\Shape.cpp|58|undefined reference to `__gxx_personality_sj0'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\Shape.cpp|58|undefined reference to `_Unwind_SjLj_Register'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\Shape.cpp|58|undefined reference to `_Unwind_SjLj_Resume'|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\Shape.cpp|58|undefined reference to `_Unwind_SjLj_Unregister'|
E:\SFML\lib\libsfml-graphics-s-d.a(Shape.cpp.obj)||In function `ZN2sf5Shape10setTextureEPKNS_7TextureEb':|
D:\sfml-release\_Sources\SFML\src\SFML\Graphics\Shape.cpp|65|undefined reference to `__gxx_personality_sj0'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|


5
Général / Re : Configuration SFML code block
« le: Juillet 02, 2016, 11:22:17 pm »
Je n avais pas defini le SFML_STATIC partout (je ne sais pas si ca a une incidence) en tout cas les erreurs semblent etre les memes

||=== Build: Debug in testSFML (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `main':|
E:\C++\testSFML\main.cpp|5|undefined reference to `sf::String::String(char const*, std::locale const&)'|
E:\C++\testSFML\main.cpp|5|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
E:\C++\testSFML\main.cpp|5|undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
E:\C++\testSFML\main.cpp|6|undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'|
E:\C++\testSFML\main.cpp|7|undefined reference to `sf::Color::Green'|
E:\C++\testSFML\main.cpp|7|undefined reference to `sf::Shape::setFillColor(sf::Color const&)'|
E:\C++\testSFML\main.cpp|15|undefined reference to `sf::Window::close()'|
E:\C++\testSFML\main.cpp|12|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
E:\C++\testSFML\main.cpp|18|undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
E:\C++\testSFML\main.cpp|18|undefined reference to `sf::RenderTarget::clear(sf::Color const&)'|
E:\C++\testSFML\main.cpp|19|undefined reference to `sf::RenderStates::Default'|
E:\C++\testSFML\main.cpp|19|undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'|
E:\C++\testSFML\main.cpp|20|undefined reference to `sf::Window::display()'|
E:\C++\testSFML\main.cpp|9|undefined reference to `sf::Window::isOpen() const'|
E:\C++\testSFML\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
E:\C++\testSFML\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
E:\C++\testSFML\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev':|
E:\SFML\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
E:\SFML\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
E:\SFML\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `sf::Shape::~Shape()'|
||error: ld returned 1 exit status|
||=== Build failed: 21 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

6
Général / Re : Configuration SFML code block
« le: Juillet 02, 2016, 11:12:25 pm »
En effet, j ai testé allegro avant et je croyais avoir fait le menage.

Apres avoir tout nettoye, voila ce que j'ai:

||=== Build: Debug in testSFML (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function `main':|
E:\C++\testSFML\main.cpp|5|undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'|
E:\C++\testSFML\main.cpp|5|undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'|
E:\C++\testSFML\main.cpp|5|undefined reference to `_imp___ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'|
E:\C++\testSFML\main.cpp|6|undefined reference to `_imp___ZN2sf11CircleShapeC1Efj'|
E:\C++\testSFML\main.cpp|7|undefined reference to `_imp___ZN2sf5Color5GreenE'|
E:\C++\testSFML\main.cpp|7|undefined reference to `_imp___ZN2sf5Shape12setFillColorERKNS_5ColorE'|
E:\C++\testSFML\main.cpp|15|undefined reference to `_imp___ZN2sf6Window5closeEv'|
E:\C++\testSFML\main.cpp|12|undefined reference to `_imp___ZN2sf6Window9pollEventERNS_5EventE'|
E:\C++\testSFML\main.cpp|18|undefined reference to `_imp___ZN2sf5ColorC1Ehhhh'|
E:\C++\testSFML\main.cpp|18|undefined reference to `_imp___ZN2sf12RenderTarget5clearERKNS_5ColorE'|
E:\C++\testSFML\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderStates7DefaultE'|
E:\C++\testSFML\main.cpp|19|undefined reference to `_imp___ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'|
E:\C++\testSFML\main.cpp|20|undefined reference to `_imp___ZN2sf6Window7displayEv'|
E:\C++\testSFML\main.cpp|9|undefined reference to `_imp___ZNK2sf6Window6isOpenEv'|
E:\C++\testSFML\main.cpp|23|undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'|
E:\C++\testSFML\main.cpp|23|undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'|
E:\C++\testSFML\main.cpp|23|undefined reference to `_imp___ZN2sf12RenderWindowD1Ev'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev':|
E:\SFML\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `_imp___ZTVN2sf11CircleShapeE'|
E:\SFML\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `_imp___ZTVN2sf11CircleShapeE'|
E:\SFML\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `_imp___ZN2sf5ShapeD2Ev'|
||error: ld returned 1 exit status|
||=== Build failed: 21 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

7
Général / Configuration SFML code block
« le: Juillet 02, 2016, 10:20:10 pm »
Bonjour a tous, j essaye de faire fonctionner SFML avec code block mais comme vous pouvez vous y attendre, je n y arrive pas.
Il me semble avoir pourtant avoir suivi le tuto mais ren ne fait, voici ce que j'ai:



#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

et voici les erreurs:

\Program Files (x86)\CodeBlocks\MinGW\lib\liballeg_s.a||No such file or directory|
et ca 8 fois)

Meme en comprenant le type d erreur, je ne sais pas comment les resoudre.

Merci

Pages: [1]