Bonjour,
Depuis 2-3jours maintenant, j'essaye de compiler un projet avec Havok.
J'ai donc telecharge le SDK, ouvert le UserGuide, et essayer de compiler ne serais-ce que la premiere ligne, A savoir:
Bien sur, je dois inclure les headers avec, alors je lis la doc, et je cherches les headers a inclure:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 hkMemoryRouter* _memRouter = hkMemoryInitUtil::initDefault(hkMallocAllocator::m_defaultMallocAllocator, hkMemorySystem::FrameInfo(500000));
voila ce que me dis la doc pour, par exemple hkMallocAllocator:
The documentation for this class was generated from the following file:
[inlinecode]<hkBase/Memory/Allocator/Malloc/hkMallocAllocator.h>[/inlinecode]
Du coup j'inclue le header, mais deja, chez moi, les sources different de la doc puisque le header en question ne se trouve pas dans le bon repertoire. (meme probleme avec hkMemoryInitUtil.h d'ailleurs, et avec bcp d'autres..)
Est-ce que j'ai oublie de faire qqch pour que mes sources collent avec ce que dit la doc?
bon, passons, j'inclue le header, que je trouve en parcourant les sources un peu au hasard, je fais pareil avec tous ceux qui ne sont pas aux bons endroits et je compile:
Je suis sous visual studio 2008 et j'ai inclu dans "additionnal lib directories" le path>Linking...
1>HavokEngine.obj : error LNK2001: unresolved external symbol "public: static class hkMemoryAllocator * hkMallocAllocator::m_defaultMallocAllocator" (?m_defaultMallocAllocator@hkMallocAllocator@@2PAVhkMemoryAllocator@@A)
1>HavokEngine.obj : error LNK2019: unresolved external symbol "public: __thiscall hkMemorySystem::FrameInfo::FrameInfo(int)" (??0FrameInfo@hkMemorySystem@@QAE@H@Z) referenced in function "public: __thiscall HavokEngine::HavokEngine(void)" (??0HavokEngine@@QAE@XZ)
1>HavokEngine.obj : error LNK2019: unresolved external symbol "class hkMemoryRouter * __cdecl hkMemoryInitUtil::initFreeList(class hkMemoryAllocator *,struct hkMemorySystem::FrameInfo const &,struct hkFreeListAllocator::Cinfo const *)" (?initFreeList@hkMemoryInitUtil@@YAPAVhkMemoryRouter@@PAVhkMemoryAllocator@@ABUFrameInfo@hkMemorySystem@@PBUCinfo@hkFreeListAllocator@@@Z) referenced in function "class hkMemoryRouter * __cdecl hkMemoryInitUtil::initDefault(class hkMemoryAllocator *,struct hkMemorySystem::FrameInfo const &)" (?initDefault@hkMemoryInitUtil@@YAPAVhkMemoryRouter@@PAVhkMemoryAllocator@@ABUFrameInfo@hkMemorySystem@@@Z)
1>HavokEngine.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall hkMemoryAllocator::~hkMemoryAllocator(void)" (??1hkMemoryAllocator@@UAE@XZ) referenced in function "public: virtual __thiscall hkLifoAllocator::~hkLifoAllocator(void)" (??1hkLifoAllocator@@UAE@XZ)
1>fatal error LNK1120: 4 unresolved externals
<dossier racine>\Lib\win32_net_9-0\debug_multithreaded_dll
Quelqu'un a une explication?, j'ai dl la version 2010.2.0, et je trouve personne qui ait mon probleme sur le net, donc j'ai forcement du faire une connerie qqe part ^^"
HELP! =P
Partager