Je suis en train de porter un prog qui fonctionne à merveille sous linux vers windows. Seulement voila, après une demi journée de tests je n'arrive pas à faire fonctionner Cal3D normalement.
J'ai compilé moi-même Cal3D car pas moyen de trouver une version précompilée pour windows.
* Sous Dev-CPP, j'ai (comme je l'ai fait pour glut) :
- copié le fichier cal3d.lib dans le répertoire lib
- copié le répertoire cal3d avec les headers dans le rep include
- copié cal3d.dll dans winnt/system32 et dans le répertoire du projet
- ajouté cal3d.lib dans les librairies de mon projet
Résultat, la compilation échoue au moment du linckage ... Paraît-il que toutes les références des classes de Cal3D sont indéfinies.
J'arrive au même résultat avec Visual Studio 8. Sauf que je sais pas comment on ajoute une librairie au projet, je me dis que c'est peut-être automatique ... :
Linking...
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalCoreSkeleton::calculateBoundingBoxes(class CalCoreModel *)" (__imp_?calculateBoundingBoxes@CalCoreSkeleton@@QAEXPAVCalCoreModel@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalCoreSkeleton * __thiscall CalCoreModel::getCoreSkeleton(void)" (__imp_?getCoreSkeleton@CalCoreModel@@QAEPAVCalCoreSkeleton@@XZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreModel::setCoreMaterialId(int,int,int)" (__imp_?setCoreMaterialId@CalCoreModel@@QAE_NHHH@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreModel::createCoreMaterialThread(int)" (__imp_?createCoreMaterialThread@CalCoreModel@@QAE_NH@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreMaterial::setMapUserData(int,void *)" (__imp_?setMapUserData@CalCoreMaterial@@QAE_NHPAX@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall CalCoreMaterial::getMapFilename(int)" (__imp_?getMapFilename@CalCoreMaterial@@QAEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreMaterial::getMapCount(void)" (__imp_?getMapCount@CalCoreMaterial@@QAEHXZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalCoreMaterial * __thiscall CalCoreModel::getCoreMaterial(int)" (__imp_?getCoreMaterial@CalCoreModel@@QAEPAVCalCoreMaterial@@H@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::getCoreMaterialCount(void)" (__imp_?getCoreMaterialCount@CalCoreModel@@QAEHXZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::loadCoreMaterial(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreMaterial@CalCoreModel@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::loadCoreMesh(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreMesh@CalCoreModel@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::loadCoreAnimation(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreAnimation@CalCoreModel@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl CalError::printLastError(void)" (__imp_?printLastError@CalError@@YAXXZ) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalCoreModel::loadCoreSkeleton(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?loadCoreSkeleton@CalCoreModel@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CalCoreModel::CalCoreModel(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0CalCoreModel@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall MFEModel::MFEModel(char *)" (??0MFEModel@@QAE@PAD@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalMixer::blendCycle(int,float,float)" (__imp_?blendCycle@CalMixer@@QAE_NHMM@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalMixer * __thiscall CalModel::getMixer(void)const " (__imp_?getMixer@CalModel@@QBEPAVCalMixer@@XZ) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalModel::setMaterialSet(int)" (__imp_?setMaterialSet@CalModel@@QAEXH@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalModel::attachMesh(int)" (__imp_?attachMesh@CalModel@@QAE_NH@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalCoreModel::getCoreMeshCount(void)" (__imp_?getCoreMeshCount@CalCoreModel@@QAEHXZ) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CalModel::CalModel(class CalCoreModel *)" (__imp_??0CalModel@@QAE@PAVCalCoreModel@@@Z) referenced in function "public: __thiscall MFEModelInstance::MFEModelInstance(class MFEModel *)" (??0MFEModelInstance@@QAE@PAVMFEModel@@@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::endRendering(void)" (__imp_?endRendering@CalRenderer@@QAEXXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void * __thiscall CalRenderer::getMapUserData(int)" (__imp_?getMapUserData@CalRenderer@@QAEPAXH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getMapCount(void)" (__imp_?getMapCount@CalRenderer@@QAEHXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getFaces(int *)" (__imp_?getFaces@CalRenderer@@QAEHPAH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getTextureCoordinates(int,float *,int)" (__imp_?getTextureCoordinates@CalRenderer@@QAEHHPAMH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getNormals(float *,int)" (__imp_?getNormals@CalRenderer@@QAEHPAMH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getVertices(float *,int)" (__imp_?getVertices@CalRenderer@@QAEHPAMH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::getSpecularColor(unsigned char *)" (__imp_?getSpecularColor@CalRenderer@@QAEXPAE@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::getDiffuseColor(unsigned char *)" (__imp_?getDiffuseColor@CalRenderer@@QAEXPAE@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalRenderer::getAmbientColor(unsigned char *)" (__imp_?getAmbientColor@CalRenderer@@QAEXPAE@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalRenderer::selectMeshSubmesh(int,int)" (__imp_?selectMeshSubmesh@CalRenderer@@QAE_NHH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getSubmeshCount(int)" (__imp_?getSubmeshCount@CalRenderer@@QAEHH@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CalRenderer::getMeshCount(void)" (__imp_?getMeshCount@CalRenderer@@QAEHXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CalRenderer::beginRendering(void)" (__imp_?beginRendering@CalRenderer@@QAE_NXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalRenderer * __thiscall CalModel::getRenderer(void)const " (__imp_?getRenderer@CalModel@@QBEPAVCalRenderer@@XZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalSkeleton::calculateBoundingBoxes(void)" (__imp_?calculateBoundingBoxes@CalSkeleton@@QAEXXZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CalSkeleton * __thiscall CalModel::getSkeleton(void)const " (__imp_?getSkeleton@CalModel@@QBEPAVCalSkeleton@@XZ) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MFEClient.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CalModel::update(float)" (__imp_?update@CalModel@@QAEXM@Z) referenced in function "public: void __thiscall MFEModelInstance::Render(bool,bool)" (?Render@MFEModelInstance@@QAEX_N0@Z)
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
Ca serait sympa de me débloquer parce que là, je n'en peut plus !
Partager