by hamlatzis » Wed Jan 04, 2012 6:45 am
Similar problem with MS Visual Studio 2005 Prof and MS Visual Studio 2008 Express. DLL doesn't link with infinite unresolved externals.
If I create as suggested as a library then the demo has some unresolved externals
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "int bench_count" (?bench_count@@3HA)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo * bench_list" (?bench_list@@3PAUChipmunkDemo@@A)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo Slice" (?Slice@@3UChipmunkDemo@@A)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo Buoyancy" (?Buoyancy@@3UChipmunkDemo@@A)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo ContactGraph" (?ContactGraph@@3UChipmunkDemo@@A)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo Crane" (?Crane@@3UChipmunkDemo@@A)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo Chains" (?Chains@@3UChipmunkDemo@@A)
1>ChipmunkDemo.obj : error LNK2001: unresolved external symbol "struct ChipmunkDemo BouncyHexagons" (?BouncyHexagons@@3UChipmunkDemo@@A)
1>chipmunk.lib(cpSpace.obj) : error LNK2019: unresolved external symbol _cpBBTreeSetVelocityFunc referenced in function _cpSpaceInit
1>chipmunk.lib(cpSpace.obj) : error LNK2019: unresolved external symbol _cpBBTreeNew referenced in function _cpSpaceInit
1>chipmunk.lib(cpSpace.obj) : error LNK2019: unresolved external symbol _cpSpatialIndexFree referenced in function _cpSpaceDestroy
1>chipmunk.lib(cpSpaceHash.obj) : error LNK2019: unresolved external symbol "struct cpSpatialIndex * __cdecl cpSpatialIndexInit(struct cpSpatialIndex *,struct cpSpatialIndexClass *,struct cpBB (__cdecl*)(void *),struct cpSpatialIndex *)" (?cpSpatialIndexInit@@YAPAUcpSpatialIndex@@PAU1@PAUcpSpatialIndexClass@@P6A?AUcpBB@@PAX@Z0@Z) referenced in function _cpSpaceHashInit
1>chipmunk.lib(cpSpaceHash.obj) : error LNK2019: unresolved external symbol _cpSpatialIndexCollideStatic referenced in function "void __cdecl cpSpaceHashReindexQuery(struct cpSpaceHash *,void (__cdecl*)(void *,void *,void *),void *)" (?cpSpaceHashReindexQuery@@YAXPAUcpSpaceHash@@P6AXPAX11@Z1@Z)
1>Debug DLL\demo.exe : fatal error LNK1120: 13 unresolved externals