NotThatJenny
Mitglied
Hi,
ich habe folgendes Problem. Ich hatte einen Struct Ray, in einer eigenen header Datei gespeichert und wollte diesen dann aus diversen Gründen in eine Klasse umschreiben. Ergo musste ich auch zb in meiner PhotonMapping Klasse über Getter und Setter auf die Membervariablen zugreifen. Ja und als ich fertig war, war dies hier das Resultat:
Verknüpfen...
Ich habe schon alles Mögliche und Unmögliche geprüft, kann mir die Fehler aber absolut nicht erklären. Hab auch mal komplettes Undo der Umbastelei gemacht und dann in kleinen Redo Schritten geprüft ob ich Fehler gemacht hab.... war alles ok.
Bin euch für jeden Hinweis dankbar!
Jenny
PS: die Smilys im Code stehen für ": P". Kann leider nich verhindern, dass die umgemalt werden...
ich habe folgendes Problem. Ich hatte einen Struct Ray, in einer eigenen header Datei gespeichert und wollte diesen dann aus diversen Gründen in eine Klasse umschreiben. Ergo musste ich auch zb in meiner PhotonMapping Klasse über Getter und Setter auf die Membervariablen zugreifen. Ja und als ich fertig war, war dies hier das Resultat:
Verknüpfen...
Code:
Octree.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: class Coordinate const & __thiscall Ray::getPhotonPos(void)const " (?getPhotonPos@Ray@@QBEABVCoordinate@@XZ)', verwiesen in Funktion '"public: bool __thiscall Octree::computeIntersectionWithRay(class Ray &,class Node *,struct HitInfo &,class Node *,double)" (?computeIntersectionWithRay@Octree@@QAE_NAAVRay@@PAVNode@@AAUHitInfo@@1N@Z)'
PhotonMapping.obj : error LNK2001: Nichtaufgelöstes externes Symbol "public: class Coordinate const & __thiscall Ray::getPhotonPos(void)const " (?getPhotonPos@Ray@@QBEABVCoordinate@@XZ)
Octree.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: class Vector const & __thiscall Ray::getDirection(void)const " (?getDirection@Ray@@QBEABVVector@@XZ)', verwiesen in Funktion '"public: bool __thiscall Octree::computeIntersectionWithRay(class Ray &,class Node *,struct HitInfo &,class Node *,double)" (?computeIntersectionWithRay@Octree@@QAE_NAAVRay@@PAVNode@@AAUHitInfo@@1N@Z)'
PhotonMapping.obj : error LNK2001: Nichtaufgelöstes externes Symbol "public: class Vector const & __thiscall Ray::getDirection(void)const " (?getDirection@Ray@@QBEABVVector@@XZ)
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall Ray::setColor(class Vector const &)" (?setColor@Ray@@QAEXABVVector@@@Z)', verwiesen in Funktion '"private: class std::vector > __thiscall PhotonMapping::generateRays(class DirectionalLight const *,class Octree *,class Node *)" (?generateRays@PhotonMapping@@AAE?AV?$vector@VRay@@V?$allocator@VRay@@@std@@@std@@PBVDirectionalLight@@PAVOctree@@PAVNode@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall Ray::setDirection(class Vector const &)" (?setDirection@Ray@@QAEXABVVector@@@Z)', verwiesen in Funktion '"private: class std::vector > __thiscall PhotonMapping::generateRays(class DirectionalLight const *,class Octree *,class Node *)" (?generateRays@PhotonMapping@@AAE?AV?$vector@VRay@@V?$allocator@VRay@@@std@@@std@@PBVDirectionalLight@@PAVOctree@@PAVNode@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall Ray::setID(unsigned int)" (?setID@Ray@@QAEXI@Z)', verwiesen in Funktion '"private: class std::vector > __thiscall PhotonMapping::generateRays(class DirectionalLight const *,class Octree *,class Node *)" (?generateRays@PhotonMapping@@AAE?AV?$vector@VRay@@V?$allocator@VRay@@@std@@@std@@PBVDirectionalLight@@PAVOctree@@PAVNode@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall Ray::setPhoton(class Coordinate const &,float)" (?setPhoton@Ray@@QAEXABVCoordinate@@M@Z)', verwiesen in Funktion '"private: class std::vector > __thiscall PhotonMapping::generateRays(class DirectionalLight const *,class Octree *,class Node *)" (?generateRays@PhotonMapping@@AAE?AV?$vector@VRay@@V?$allocator@VRay@@@std@@@std@@PBVDirectionalLight@@PAVOctree@@PAVNode@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: __thiscall Ray::~Ray(void)" (1Ray@@QAE@XZ)', verwiesen in Funktion '"private: class Ray __thiscall PhotonMapping::diffuseReflection(class Ray &,class Vector &,class Coordinate &)const " (?diffuseReflection@PhotonMapping@@ABE?AVRay@@AAV2@AAVVector@@AAVCoordinate@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: float const __thiscall Ray::getPhotonPower(void)const " (?getPhotonPower@Ray@@QBE?BMXZ)', verwiesen in Funktion '"private: class Ray __thiscall PhotonMapping::diffuseReflection(class Ray &,class Vector &,class Coordinate &)const " (?diffuseReflection@PhotonMapping@@ABE?AVRay@@AAV2@AAVVector@@AAVCoordinate@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: __thiscall Ray::Ray(void)" (0Ray@@QAE@XZ)', verwiesen in Funktion '"private: class Ray __thiscall PhotonMapping::diffuseReflection(class Ray &,class Vector &,class Coordinate &)const " (?diffuseReflection@PhotonMapping@@ABE?AVRay@@AAV2@AAVVector@@AAVCoordinate@@@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall Ray::setPhotonPower(float)" (?setPhotonPower@Ray@@QAEXM@Z)', verwiesen in Funktion '"public: void __thiscall PhotonMapping::photonTraceReverse(class DirectionalLight const *,class Octree * &,class Node * &,double,class Vector &,double &,bool)" (?photonTraceReverse@PhotonMapping@@QAEXPBVDirectionalLight@@AAPAVOctree@@AAPAVNode@@NAAVVector@@AAN_N@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: unsigned int const __thiscall Ray::getID(void)const " (?getID@Ray@@QBE?BIXZ)', verwiesen in Funktion '"public: void __thiscall PhotonMapping::photonTraceReverse(class DirectionalLight const *,class Octree * &,class Node * &,double,class Vector &,double &,bool)" (?photonTraceReverse@PhotonMapping@@QAEXPBVDirectionalLight@@AAPAVOctree@@AAPAVNode@@NAAVVector@@AAN_N@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: class Vector const & __thiscall Ray::getColor(void)const " (?getColor@Ray@@QBEABVVector@@XZ)', verwiesen in Funktion '"public: void __thiscall PhotonMapping::photonTraceReverse(class DirectionalLight const *,class Octree * &,class Node * &,double,class Vector &,double &,bool)" (?photonTraceReverse@PhotonMapping@@QAEXPBVDirectionalLight@@AAPAVOctree@@AAPAVNode@@NAAVVector@@AAN_N@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: void __thiscall Ray::setPhoton(struct Photon const &)" (?setPhoton@Ray@@QAEXABUPhoton@@@Z)', verwiesen in Funktion '"public: void __thiscall PhotonMapping::photonTraceReverse(class DirectionalLight const *,class Octree * &,class Node * &,double,class Vector &,double &,bool)" (?photonTraceReverse@PhotonMapping@@QAEXPBVDirectionalLight@@AAPAVOctree@@AAPAVNode@@NAAVVector@@AAN_N@Z)'
PhotonMapping.obj : error LNK2019: Nicht aufgelöstes externes Symbol '"public: struct Photon const & __thiscall Ray::getPhoton(void)const " (?getPhoton@Ray@@QBEABUPhoton@@XZ)', verwiesen in Funktion '"public: void __thiscall PhotonMapping::photonTraceReverse(class DirectionalLight const *,class Octree * &,class Node * &,double,class Vector &,double &,bool)" (?photonTraceReverse@PhotonMapping@@QAEXPBVDirectionalLight@@AAPAVOctree@@AAPAVNode@@NAAVVector@@AAN_N@Z)'
Debug/Diplomarbeit.exe : fatal error LNK1120: 14 unaufgelöste externe Verweise
Ich habe schon alles Mögliche und Unmögliche geprüft, kann mir die Fehler aber absolut nicht erklären. Hab auch mal komplettes Undo der Umbastelei gemacht und dann in kleinen Redo Schritten geprüft ob ich Fehler gemacht hab.... war alles ok.
Bin euch für jeden Hinweis dankbar!
Jenny
PS: die Smilys im Code stehen für ": P". Kann leider nich verhindern, dass die umgemalt werden...