Bonjour,
J’ai eu une erreur de compilation complètement inattendue du jeu Shoot. Voici le fichier d’erreurs :
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:4:
include/SFML/include\SFML/System/Clock.hpp:40:7: warning: 'dllimport' attribute only applies to variables and functions
class SFML_API Clock
^
include/SFML/include\SFML/Config.hpp:110:37: note: expanded from:
#define SFML_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:6:
include/SFML/include\SFML/Graphics/Color.hpp:40:7: warning: 'dllimport' attribute only applies to variables and functions
class SFML_API Color
^
include/SFML/include\SFML/Config.hpp:110:37: note: expanded from:
#define SFML_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:7:
include/GDL\GDL/RuntimeContext.h:13:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API RuntimeContext
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:8:
In file included from include/GDL\GDL/Object.h:9:
include/GDL\GDL/Force.h:15:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API Force
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:8:
In file included from include/GDL\GDL/Object.h:13:
In file included from include/GDL\GDL/VariableList.h:11:
In file included from include/GDL\GDL/Variable.h:9:
include/Core\GDCore/PlatformDefinition/Variable.h:20:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_CORE_API Variable
^
<command line>:2:32: note: expanded from:
#define GD_CORE_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:8:
In file included from include/GDL\GDL/Object.h:13:
In file included from include/GDL\GDL/VariableList.h:11:
include/GDL\GDL/Variable.h:24:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API Variable
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:8:
In file included from include/GDL\GDL/Object.h:13:
include/GDL\GDL/VariableList.h:25:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API ListVariable
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:8:
include/GDL\GDL/Object.h:50:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API Object
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:17:
In file included from include/GDL\GDL/SpriteObject.h:10:
include/GDL\GDL/Animation.h:20:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API Animation
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:17:
include/GDL\GDL/SpriteObject.h:38:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_API SpriteObject : public Object
^
<command line>:3:27: note: expanded from:
#define GD_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
In file included from C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:18:
Extensions/include\ParticleSystem/ParticleEmitterObject.h:53:7: warning: 'dllimport' attribute only applies to variables and functions
class GD_EXTENSION_API ParticleEmitterObject : public Object
^
<command line>:4:37: note: expanded from:
#define GD_EXTENSION_API __declspec(dllimport)
^
<built-in>:123:38: note: expanded from:
#define __declspec(a) __attribute__((a))
^
C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:446:14: error: use of undeclared identifier 'find'
if ( find(GDBadObjectsfinal.begin(), GDBadObjectsfinal.end(), GDBadObjects[i]) == GDBadObjectsfinal.end())
^
C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:469:14: error: use of undeclared identifier 'find'
if ( find(GDBadObjectsfinal.begin(), GDBadObjectsfinal.end(), GDBadObjects[i]) == GDBadObjectsfinal.end())
^
C:\Users\Thomas\AppData\Local\Temp/GDTemporaries/0x4dd0560events.cpp:598:71: warning: comparison of unsigned expression >= 0 is always true
if ( static_cast<SpriteObject*>(GDPersoObjects[i])->GetSpriteNb() >= 0 )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
Je pensais pas que c’était aussi grave de compiler un jeu.
Merci d’avance.