Hi, I'm a newb doin basics CS tutorials under windows7 + VisualStudio 2008 v9.0
I've open and build wkstypical and some projects had some link errors with ::GetGenericID
*Note: I did put include + lib directory dependency and other project build successfully ( like walktest )
Projects like plgfancycon and plgcsconout had error:
Error 2 error LNK2001: unresolved external symbol "public: virtual unsigned long __thiscall iEventHandlerRegistry::GetGenericID(char const *)" (?GetGenericID@iEventHandlerRegistry@@UAEKPBD@Z) fancycon.obj plgfancycon
I notice that modifying the following code:
CS_CONST_METHOD virtual const csHandlerID * GenericPrec(
csRef<iEventHandlerRegistry> &r1, csRef<iEventNameRegistry> &r2,
csEventID e) const
{
if (e == csevSystemOpen (r2)) {
/* TODO : not thread-safe */
static csHandlerID precs[2] = { r1->GetGenericID("crystalspace.graphics3d"), CS_HANDLERLIST_END };
By replacing the last line by explicitly define each array elements like :
static csHandlerID precs[2];
precs[0] = r1->GetGenericID("crystalspace.graphics3d");
precs[1] = CS_HANDLERLIST_END;
Then the project link successfully... same with plgcsconout.
Is it a known bug under my environnement ?
or maybe its no bug, do I need to modify some VisualStudio options ? is it compiler issue ?
Thanks