Demo example of the recastnavigation compiled without problems.
In the debugger writes
Code: Select all
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildContours(class rcContext *,struct rcCompactHeightfield &,float,int,struct rcContourSet &,int)" (?rcBuildContours@@YA_NPAVrcContext@@AAUrcCompactHeightfield@@MHAAUrcContourSet@@H@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFreeHeightField(struct rcHeightfield *)" (?rcFreeHeightField@@YAXPAUrcHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention duLogBuildTimes(class rcContext &,int)" (?duLogBuildTimes@@YAXAAVrcContext@@H@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildRegionsMonotone(class rcContext *,struct rcCompactHeightfield &,int,int,int)" (?rcBuildRegionsMonotone@@YA_NPAVrcContext@@AAUrcCompactHeightfield@@HHH@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcRasterizeTriangles(class rcContext *,float const *,int,int const *,unsigned char const *,int,struct rcHeightfield &,int)" (?rcRasterizeTriangles@@YAXPAVrcContext@@PBMHPBHPBEHAAUrcHeightfield@@H@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFreeContourSet(struct rcContourSet *)" (?rcFreeContourSet@@YAXPAUrcContourSet@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildRegions(class rcContext *,struct rcCompactHeightfield &,int,int,int)" (?rcBuildRegions@@YA_NPAVrcContext@@AAUrcCompactHeightfield@@HHH@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildPolyMeshDetail(class rcContext *,struct rcPolyMesh const &,struct rcCompactHeightfield const &,float,float,struct rcPolyMeshDetail &)" (?rcBuildPolyMeshDetail@@YA_NPAVrcContext@@ABUrcPolyMesh@@ABUrcCompactHeightfield@@MMAAUrcPolyMeshDetail@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcCreateHeightfield(class rcContext *,struct rcHeightfield &,int,int,const float *a,const float *,float,float)" (?rcCreateHeightfield@@YA_NPAVrcContext@@AAUrcHeightfield@@HHPBM2MM@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFilterLowHangingWalkableObstacles(class rcContext *,int,struct rcHeightfield &)" (?rcFilterLowHangingWalkableObstacles@@YAXPAVrcContext@@HAAUrcHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcCalcBounds(float const *,int,float *,float *)" (?rcCalcBounds@@YAXPBMHPAM1@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildPolyMesh(class rcContext *,struct rcContourSet &,int,struct rcPolyMesh &)" (?rcBuildPolyMesh@@YA_NPAVrcContext@@AAUrcContourSet@@HAAUrcPolyMesh@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcCalcGridSize(const float *a,const float *a,float,int *,int *)" (?rcCalcGridSize@@YAXPBM0MPAH1@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcMarkWalkableTriangles(class rcContext *,float,float const *,int,int const *,int,unsigned char *)" (?rcMarkWalkableTriangles@@YAXPAVrcContext@@MPBMHPBHHPAE@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFilterLedgeSpans(class rcContext *,int,int,struct rcHeightfield &)" (?rcFilterLedgeSpans@@YAXPAVrcContext@@HHAAUrcHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFilterWalkableLowHeightSpans(class rcContext *,int,struct rcHeightfield &)" (?rcFilterWalkableLowHeightSpans@@YAXPAVrcContext@@HAAUrcHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildDistanceField(class rcContext *,struct rcCompactHeightfield &)" (?rcBuildDistanceField@@YA_NPAVrcContext@@AAUrcCompactHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcErodeWalkableArea(class rcContext *,int,struct rcCompactHeightfield &)" (?rcErodeWalkableArea@@YA_NPAVrcContext@@HAAUrcCompactHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "public: void Convention rcContext::log(enum rcLogCategory,char const *,...)" (?log@rcContext@@QAAXW4rcLogCategory@@PBDZZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFreeCompactHeightfield(struct rcCompactHeightfield *)" (?rcFreeCompactHeightfield@@YAXPAUrcCompactHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall BuildContext::AC BuildContext(void)" (??1BuildContext@@UAE@XZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol "public: __thiscall BuildContext::BuildContext(void)" (??0BuildContext@@QAE@XZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFreePolyMesh(struct rcPolyMesh *)" (?rcFreePolyMesh@@YAXPAUrcPolyMesh@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""bool Convention rcBuildCompactHeightfield(class rcContext *,int,int,struct rcHeightfield &,struct rcCompactHeightfield &)" (?rcBuildCompactHeightfield@@YA_NPAVrcContext@@HHAAUrcHeightfield@@AAUrcCompactHeightfield@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol "void Convention rcFreePolyMeshDetail(struct rcPolyMeshDetail *)" (?rcFreePolyMeshDetail@@YAXPAUrcPolyMeshDetail@@@Z)
1>recast_util.obj : error LNK2001: unresolved external symbol ""struct rcCompactHeightfield * Convention rcAllocCompactHeightfield(void)" (?rcAllocCompactHeightfield@@YAPAUrcCompactHeightfield@@XZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol ""struct rcContourSet * Convention rcAllocContourSet(void)" (?rcAllocContourSet@@YAPAUrcContourSet@@XZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol ""struct rcPolyMeshDetail * Convention rcAllocPolyMeshDetail(void)" (?rcAllocPolyMeshDetail@@YAPAUrcPolyMeshDetail@@XZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol ""struct rcPolyMesh * Convention rcAllocPolyMesh(void)" (?rcAllocPolyMesh@@YAPAUrcPolyMesh@@XZ)"
1>recast_util.obj : error LNK2001: unresolved external symbol ""struct rcHeightfield * Convention rcAllocHeightfield(void)" (?rcAllocHeightfield@@YAPAUrcHeightfield@@XZ)"
1>C:\SDK\Project\pathfinder\Release\pathfinder.exe : fatal error LNK1120: unresolved external elements: 30
What could be the problem? Please help
Spread the project in Visual Studio 2012 http://puu.sh/4m5BL.zip