Game Development Community

Atlas related Linker error

by Richard Hebblewhite · in Torque Game Engine Advanced · 09/02/2009 (3:27 pm) · 2 replies

Hi!

What is the most likely cause of the following error ??

1>guiMiniMap.obj : error LNK2001: unresolved external symbol "public: static class Point3F AtlasInstance::startCoords" (?startCoords@AtlasInstance@@2VPoint3F@@A)
1>../../../game/Stronghold.exe : fatal error LNK1120: 1 unresolved externals

Atlas is implemented and activated correctly (as per the Gotcha list) in my version TGEA 1.7.1 so I'm a bit lost for a solution. As it happens, I'm trying to get the minimap resource (http://www.garagegames.com/community/resources/view/16799) working and have posted accordingly (check comments 20 & 21).

The error only appears when the minimap files are included in the compilation (removing them results in a perfect compilation). Any help with this would be appreciated! :-)

About the author

Senior Lecturer at Glyndwr University, Wrexham. Director of RareBit Interactive & Programme Director for Computer Game, Immersive Technology and Creative Computing Programmes.


#1
09/08/2009 (10:44 pm)
Richard, you've probably not defined and initialized the static variable startCoords in atlasInstance2.h and atlasInstance2.cpp. See the last comment in the resource for more information.
#2
09/09/2009 (6:01 am)
Hi Dennis,

Thanks for your response! I'd already initialised the static variable, but after tweaking it a bit, I'm now getting a new different error. Check the resource thread for my response.


Thanks!