Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [ODFAEG] (Open Source Development Framework Adapted for Every Game)  (Read 158727 times)

0 Members and 3 Guests are viewing this topic.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #285 on: June 05, 2014, 06:43:17 pm »
SDL 2 seems to be very nice, I think I'll be able to use GLSL 3 and correct my previous problems.

There is also a class called SDL_GLContext, that's exactly what I needed!

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #286 on: June 05, 2014, 06:47:31 pm »
Why are you discussing SDL topics in the SFML forum?

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #287 on: June 05, 2014, 07:00:36 pm »
He is trying to port sf::Window to use SDL internally so it works even on semi exotic systems that SDL 2 supports but SFML 2.2 doesn't.
That's quite interesting (and semi-realistic...) idea actually. If this was done right it could be binary compatible even, just the WindowImpl pointer would have to be changed to be another type of pointer (SDL_Window pointer).
Back to C++ gamedev with SFML in May 2023

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #288 on: June 05, 2014, 09:53:47 pm »
Yeah that's it! :)



Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #289 on: June 05, 2014, 10:16:48 pm »
What's the point? Just use SDL directly, its API is simple and well abstracted too, it even has more features.
Laurent Gomila - SFML developer

Excellium

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #290 on: June 05, 2014, 11:37:25 pm »
And go spamming the SDL forum ! haha sorry, too easy joke xD
« Last Edit: June 06, 2014, 12:25:06 am by Excellium »
"Everything should be made as simple as possible, but not simpler."

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #291 on: June 06, 2014, 03:42:18 pm »
Hi.
I have changed the WindowImpl pointer to a SDL_Window pointer, I have also added an SDL_GLContext class and modified the sf::GlContext class.

changed all sf::Event to SDL_Event but now I have an ambiguity problem in the headers files of SDL, between the Uint64 type of SDL and sf::Uint64.

I'm surprised that they didn't named they variables as SDL_Uint64, because in C there are no namespace to correct the ambiguity, I think I'll have to spam their forum a bit to tell them to change. :P

But meanwhile I think I'll get rid of the SFML System module and using only SDL functions and std::thread, it should solve the issue.




Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #292 on: June 06, 2014, 03:43:38 pm »
I'm surprised that they didn't named they variables as SDL_Uint64, because in C there are no namespace to correct the ambiguity, I think I'll have to spam their forum a bit to tell them to change. :P
But SFML has a namespace, why is that not enough!?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #293 on: June 06, 2014, 03:48:06 pm »
I think this is not enought because gcc seach in the sf::namespace and also in anonymous namespace (and not  in the current namespace)
And there are the same types in the two libs so...
Code: [Select]

-------------- Build: Debug in ODFAEG-DEMO (compiler: GNU GCC Compiler)---------------

In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:169:1: error: reference to ‘Uint64’ is ambiguous
 SDL_COMPILE_TIME_ASSERT(uint64, sizeof(Uint64) == 8);
 ^
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:318:42: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix);
                                          ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:318:56: error: expected primary-expression before ‘char’
 extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix);
                                                        ^
/usr/include/SDL2/SDL_stdinc.h:318:67: error: expected primary-expression before ‘int’
 extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix);
                                                                   ^
/usr/include/SDL2/SDL_stdinc.h:318:76: error: expression list treated as compound expression in initializer [-fpermissive]
 extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix);
                                                                            ^
/usr/include/SDL2/SDL_stdinc.h:325:17: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *str, char **endp, int base);
                 ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:325:17: error: ‘Uint64’ does not name a type
 extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *str, char **endp, int base);
                 ^
In file included from /usr/include/SDL2/SDL_audio.h:33:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_endian.h:167:18: error: reference to ‘Uint64’ is ambiguous
 SDL_FORCE_INLINE Uint64
                  ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_audio.h:33:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_endian.h:167:18: error: ‘Uint64’ does not name a type
 SDL_FORCE_INLINE Uint64
                  ^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_rwops.h:204:17: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops * src);
                 ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_rwops.h:204:17: error: ‘Uint64’ does not name a type
 extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops * src);
                 ^
/usr/include/SDL2/SDL_rwops.h:205:17: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops * src);
                 ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_rwops.h:205:17: error: ‘Uint64’ does not name a type
 extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops * src);
                 ^
/usr/include/SDL2/SDL_rwops.h:219:63: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
                                                               ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_rwops.h:219:63: error: ‘Uint64’ has not been declared
 extern DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
                                                               ^
/usr/include/SDL2/SDL_rwops.h:220:63: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
                                                               ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL_audio.h:36:0,
                 from /usr/include/SDL2/SDL.h:71,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_rwops.h:220:63: error: ‘Uint64’ has not been declared
 extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
                                                               ^
In file included from /usr/include/SDL2/SDL.h:91:0,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_timer.h:61:17: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void);
                 ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL.h:91:0,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_timer.h:61:17: error: ‘Uint64’ does not name a type
 extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void);
                 ^
/usr/include/SDL2/SDL_timer.h:66:17: error: reference to ‘Uint64’ is ambiguous
 extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void);
                 ^
In file included from /usr/include/SDL2/SDL_main.h:25:0,
                 from /usr/include/SDL2/SDL.h:67,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_stdinc.h:154:18: note: candidates are: typedef uint64_t Uint64
 typedef uint64_t Uint64;
                  ^
In file included from /usr/local/include/SFML/Graphics/Export.hpp:31:0,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:7,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Config.hpp:153:36: note:                 typedef long long unsigned int sf::Uint64
         typedef unsigned long long Uint64;
                                    ^
In file included from /usr/include/SDL2/SDL.h:91:0,
                 from /usr/local/include/odfaeg/Graphics/videoMode.h:3,
                 from /usr/local/include/odfaeg/Graphics/window.h:5,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/SDL2/SDL_timer.h:66:17: error: ‘Uint64’ does not name a type
 extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void);
                 ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:211:9: error: reference to ‘Font’ is ambiguous
         Font font;         /* default text font for text operations */
         ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:100:13: note: candidates are: typedef XID Font
 typedef XID Font;
             ^
In file included from /usr/local/include/SFML/Graphics.hpp:35:0,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Graphics/Font.hpp:50:25: note:                 class sf::Font
 class SFML_GRAPHICS_API Font
                         ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:211:9: error: ‘Font’ does not name a type
         Font font;         /* default text font for text operations */
         ^
/usr/include/X11/Xlib.h:272:2: error: reference to ‘Window’ is ambiguous
  Window root;  /* Root window id. */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:272:2: error: ‘Window’ does not name a type
  Window root;  /* Root window id. */
  ^
/usr/include/X11/Xlib.h:326:5: error: reference to ‘Window’ is ambiguous
     Window root;         /* root of screen containing window */
     ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:326:5: error: ‘Window’ does not name a type
     Window root;         /* root of screen containing window */
     ^
/usr/include/X11/Xlib.h:415:5: error: reference to ‘Window’ is ambiguous
     Window sibling;
     ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:415:5: error: ‘Window’ does not name a type
     Window sibling;
     ^
/usr/include/X11/Xlib.h:481:9: error: reference to ‘Time’ is ambiguous
         Time time;
         ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:77:23: note: candidates are: typedef long unsigned int Time
 typedef unsigned long Time;
                       ^
In file included from /usr/local/include/SFML/System/Clock.hpp:32:0,
                 from /usr/local/include/SFML/System.hpp:33,
                 from /usr/local/include/odfaeg/Math/vec4.h:6,
                 from /usr/local/include/odfaeg/Graphics/view.h:4,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:3,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/System/Time.hpp:40:23: note:                 class sf::Time
 class SFML_SYSTEM_API Time
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:481:9: error: ‘Time’ does not name a type
         Time time;
         ^
/usr/include/X11/Xlib.h:574:2: error: reference to ‘Window’ is ambiguous
  Window window;         /* "event" window it is reported relative to */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:574:2: error: ‘Window’ does not name a type
  Window window;         /* "event" window it is reported relative to */
  ^
/usr/include/X11/Xlib.h:575:2: error: reference to ‘Window’ is ambiguous
  Window root;         /* root window that the event occurred on */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:575:2: error: ‘Window’ does not name a type
  Window root;         /* root window that the event occurred on */
  ^
/usr/include/X11/Xlib.h:576:2: error: reference to ‘Window’ is ambiguous
  Window subwindow; /* child window */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:576:2: error: ‘Window’ does not name a type
  Window subwindow; /* child window */
  ^
/usr/include/X11/Xlib.h:577:2: error: reference to ‘Time’ is ambiguous
  Time time;  /* milliseconds */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:77:23: note: candidates are: typedef long unsigned int Time
 typedef unsigned long Time;
                       ^
In file included from /usr/local/include/SFML/System/Clock.hpp:32:0,
                 from /usr/local/include/SFML/System.hpp:33,
                 from /usr/local/include/odfaeg/Math/vec4.h:6,
                 from /usr/local/include/odfaeg/Graphics/view.h:4,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:3,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/System/Time.hpp:40:23: note:                 class sf::Time
 class SFML_SYSTEM_API Time
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:577:2: error: ‘Time’ does not name a type
  Time time;  /* milliseconds */
  ^
/usr/include/X11/Xlib.h:592:2: error: reference to ‘Window’ is ambiguous
  Window window;         /* "event" window it is reported relative to */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:592:2: error: ‘Window’ does not name a type
  Window window;         /* "event" window it is reported relative to */
  ^
/usr/include/X11/Xlib.h:593:2: error: reference to ‘Window’ is ambiguous
  Window root;         /* root window that the event occurred on */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:593:2: error: ‘Window’ does not name a type
  Window root;         /* root window that the event occurred on */
  ^
/usr/include/X11/Xlib.h:594:2: error: reference to ‘Window’ is ambiguous
  Window subwindow; /* child window */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:594:2: error: ‘Window’ does not name a type
  Window subwindow; /* child window */
  ^
/usr/include/X11/Xlib.h:595:2: error: reference to ‘Time’ is ambiguous
  Time time;  /* milliseconds */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:77:23: note: candidates are: typedef long unsigned int Time
 typedef unsigned long Time;
                       ^
In file included from /usr/local/include/SFML/System/Clock.hpp:32:0,
                 from /usr/local/include/SFML/System.hpp:33,
                 from /usr/local/include/odfaeg/Math/vec4.h:6,
                 from /usr/local/include/odfaeg/Graphics/view.h:4,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:3,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/System/Time.hpp:40:23: note:                 class sf::Time
 class SFML_SYSTEM_API Time
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:595:2: error: ‘Time’ does not name a type
  Time time;  /* milliseconds */
  ^
/usr/include/X11/Xlib.h:610:2: error: reference to ‘Window’ is ambiguous
  Window window;         /* "event" window reported relative to */
  ^
In file included from /usr/include/X11/Xlib.h:44:0,
                 from /usr/include/SDL2/SDL_syswm.h:66,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/X.h:96:13: note: candidates are: typedef XID Window
 typedef XID Window;
             ^
In file included from /usr/local/include/SFML/Window.hpp:40:0,
                 from /usr/local/include/SFML/Graphics.hpp:32,
                 from /usr/local/include/odfaeg/Graphics/transformMatrix.h:10,
                 from /usr/local/include/odfaeg/Graphics/renderTarget.h:5,
                 from /usr/local/include/odfaeg/Graphics/renderWindow.h:8,
                 from /usr/local/include/odfaeg/Core/application.h:4,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/myApplication.h:8,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:2:
/usr/local/include/SFML/Window/Window.hpp:57:23: note:                 class sf::Window
 class SFML_WINDOW_API Window : GlResource, NonCopyable
                       ^
In file included from /usr/include/SDL2/SDL_syswm.h:66:0,
                 from /usr/local/include/odfaeg/Graphics/window.h:15,
                 from /home/laurent/Développement/Projets-c++/ODFAEG-DEMO/main.cpp:10:
/usr/include/X11/Xlib.h:610:2: error: ‘Window’ does not name a type
  Window window;         /* "event" window reported relative to */
  ^
/usr/include/X11/Xlib.h:611:2: error: reference to ‘Window’ is ambiguous

So I think that they are conflicts between SDL and SFML :/
« Last Edit: June 06, 2014, 03:49:51 pm by Lolilolight »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #294 on: June 06, 2014, 03:57:22 pm »
What do you think is the purpose of namespaces if they can't avoid the simplest name conflicts?

When you write using namespace, do you really wonder why it leads to problems? ::)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #295 on: June 06, 2014, 04:23:01 pm »
If you really want to use using namespace, you can also choose which type is known by default with using..

using sf::Integer; or
using sdl::Integer;
(change to proper type names)

If I am not mistaken that works well to choose which type will then belong to the global namespace.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #296 on: June 06, 2014, 04:50:19 pm »
I'm using namespace in the .cpp files only but maybe it's not enought.

SDL have no namespace because it's written in C so, I don't now if the compiler do a distinction between sf::Uint32 and Uint32.

But it's not for nothing that all opengl functions are prefixed by the GL prefix.

SDL functions too but I'm just suprised that it isn't the case for the basic SDL integers types.
« Last Edit: June 06, 2014, 04:53:05 pm by Lolilolight »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #297 on: June 06, 2014, 04:55:25 pm »
I'm using namespace in the .cpp files only but maybe it's not enought.
It is more than enough, don't do it at all!

Qualify sf always, or at least make sure you don't include SFML and SDL headers at the same time.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

select_this

  • Full Member
  • ***
  • Posts: 130
  • Current mood: just ate a pinecone
    • View Profile
    • darrenferrie.com
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #298 on: June 06, 2014, 04:55:50 pm »
I don't now if the compiler do a distinction between sf::Uint32 and Uint32.

If you import the sf namespace, then no, it won't, regardless of whether it's in a source or header file. How can it? Imagine this scenario:

using namespace derp; // I made this up - imagine it has an int typedef called 'Uint32'
using namespace sf; // This also has the Uint32 typedef

...

Uint32 anInteger = 4; // Which Uint32 is this supposed to be? derp's version? sf's version?
Follow me on Twitter, why don'tcha? @select_this

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: [ODFAEG] (Open Source Development Framework Adapted for Every Game)
« Reply #299 on: June 06, 2014, 05:02:52 pm »
Just stop with the "using namespace sf;" bit. When you do that you pull everything from the "sf" namespace into the global namespace and of course you then have problems. Just ditch that bad habit and get used to writing sf:: and std:: and there will be no problems. It's quite simple really.