Bonjour, j'ai un problème sous vc++. Je n'arrive pas à résoudre le problème suivant:
- include "factory_repository.h"
- include "leak_dumper.h"
- include "pch.h"
- include "graphics_factory_gl.h"
- include "graphics_factory_gl2.h"
namespace Shared{ namespace Platform{
//
==================================================
===
// class FactoryRepository
//
==================================================
===
FactoryRepository &FactoryRepository::getInstance(){
static FactoryRepository factoryRepository;
return factoryRepository;
}
GraphicsFactory *FactoryRepository::getGraphicsFactory(const string &name){
if(name == "OpenGL"){
return &graphicsFactoryGl;
}
else if(name == "OpenGL2"){
return &graphicsFactoryGl2;
}
throw runtime_error("Unknown graphics factory: " + name);
}
SoundFactory *FactoryRepository::getSoundFactory(const string &name){
if(name == "DirectSound8"){
return &soundFactoryDs8;
}
throw runtime_error("Unknown sound factory: " + name);
}
}}//end namespace
et voilà les deux erreurs :
error C2065: 'graphicsFactoryGl2' : identificateur non déclaré
error C2065: 'soundFactoryDs8' : identificateur non déclaré
Avez vous une solution? merci d'avance