linking error on world->getGeometryList().getIterator()

ahmedali

20-04-2007 17:27:15

Im getting the 2001 linking error of unresloved external symbol.

OgreOde::MaintainedItemIterator<OgreOde::Geometry> geomIt = _world->getGeometryList().getIterator();// _world->getGeometryList().getIterator()

ahmedali

20-04-2007 17:32:25

LashCore.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OgreOde::MaintainedItemIterator<class OgreOde::Geometry> __thiscall OgreOde::MaintainedList<class OgreOde::Geometry>::getIterator(void)" (__imp_?getIterator@?$MaintainedList@VGeometry@OgreOde@@@OgreOde@@QAE?AV?$MaintainedItemIterator@VGeometry@OgreOde@@@2@XZ)

1>LashCore.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OgreOde::Geometry * __thiscall OgreOde::MaintainedItemIterator<class OgreOde::Geometry>::getNext(void)" (__imp_?getNext@?$MaintainedItemIterator@VGeometry@OgreOde@@@OgreOde@@QAEPAVGeometry@2@XZ)

1>LashCore.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall OgreOde::MaintainedItemIterator<class OgreOde::Geometry>::end(void)const " (__imp_?end@?$MaintainedItemIterator@VGeometry@OgreOde@@@OgreOde@@QBE_NXZ)

1>..\..\..\..\..\Samples\Common\bin\Release/DemoPB.exe : fatal error LNK1120: 3 unresolved externals
1>

rewb0rn

21-04-2007 00:54:57

have u linked against all the 3 libs? core, prefab, loader

ahmedali

21-04-2007 07:45:08

yes, ever other thing is building & linking exactly fine.

Forexample
OgreOde::MaintainedList<OgreOde::Geometry> a;
a.notify(0);
will link fine.

but the member func of same class
OgreOde::MaintainedList<OgreOde::Geometry> a;
a.getIterator();

will NOT link??

rewb0rn

21-04-2007 08:20:09

thats strange! maybe you link against old libraries where those function are not defined yet. Are you sure you use those libs that come with your headers you are using?

ahmedali

21-04-2007 10:19:00

I have the OgreOde_Source, the libs are updated to the time of build.