|
« Reply #7 on: December 14, 2008, 01:58:27 am »
|
|
What I was trying to do was declare them as a part of the class..without the () it threw a bunch of errors at me. So I stuck the () on them and it seemed happy with it =\ Lemme try this again..
lol, not a good move. Just sticking random characters onto declarations may make the compiler happy, but it sure won't produce the output you want.
Haha, I noticed. It made sense to me at the time, but now that I'm thinking about it...what I did made NO sense at all lmao. Hang on, while I pull those other errors up.. EDIT: haha..cool.. #include "HMD.h" #include "stdio.h" #include "stdlib.h"
CBaseHMD HMDFunc::readMap(const char * fileName) { CBaseHMD temp; FILE *mapFile; unsigned char * tempSprite;
mapFile = fopen(fileName, "rb");
if (mapFile == NULL) return temp;
fread(&temp.HMDID, sizeof(temp.HMDID), 1, mapFile);
if (temp.HMDID != _HMDID) return temp;
fread(&temp.mapName, sizeof(temp.mapName), 1, mapFile); fread(&temp.spriteCount, sizeof(temp.spriteCount), 1, mapFile);
for (int i = 0; i < temp.spriteCount; i++) { fread(&tempSprite, sizeof(tempSprite), 1, mapFile); temp.spriteBase.addData(tempSprite); }
return temp; } and the errors: >HMD.obj : error LNK2019: unresolved external symbol "public: void __thiscall HVSTDAT<unsigned char *>::addData(unsigned char *)" (?addData@?$HVSTDAT@PAE@@QAEXPAE@Z) referenced in function "class CBaseHMD __cdecl HMDFunc::readMap(char const *)" (?readMap@HMDFunc@@YA?AVCBaseHMD@@PBD@Z)
1>HMD.obj : error LNK2019: unresolved external symbol "public: __thiscall HVSTDAT<class CBaseSound>::~HVSTDAT<class CBaseSound>(void)" (??1?$HVSTDAT@VCBaseSound@@@@QAE@XZ) referenced in function __unwindfunclet$??0CBaseHMD@@QAE@XZ$0
1>HMD.obj : error LNK2019: unresolved external symbol "public: __thiscall HVSTDAT<unsigned char *>::~HVSTDAT<unsigned char *>(void)" (??1?$HVSTDAT@PAE@@QAE@XZ) referenced in function __unwindfunclet$??0CBaseHMD@@QAE@XZ$0
1>HMD.obj : error LNK2019: unresolved external symbol "public: __thiscall HVSTDAT<struct CBaseEntInfo>::HVSTDAT<struct CBaseEntInfo>(void)" (??0?$HVSTDAT@UCBaseEntInfo@@@@QAE@XZ) referenced in function "public: __thiscall CBaseHMD::CBaseHMD(void)" (??0CBaseHMD@@QAE@XZ)
1>HMD.obj : error LNK2019: unresolved external symbol "public: __thiscall HVSTDAT<class CBaseSound>::HVSTDAT<class CBaseSound>(void)" (??0?$HVSTDAT@VCBaseSound@@@@QAE@XZ) referenced in function "public: __thiscall CBaseHMD::CBaseHMD(void)" (??0CBaseHMD@@QAE@XZ)
1>HMD.obj : error LNK2019: unresolved external symbol "public: __thiscall HVSTDAT<unsigned char *>::HVSTDAT<unsigned char *>(void)" (??0?$HVSTDAT@PAE@@QAE@XZ) referenced in function "public: __thiscall CBaseHMD::CBaseHMD(void)" (??0CBaseHMD@@QAE@XZ)
1>HMD.obj : error LNK2019: unresolved external symbol "public: __thiscall HVSTDAT<struct CBaseEntInfo>::~HVSTDAT<struct CBaseEntInfo>(void)" (??1?$HVSTDAT@UCBaseEntInfo@@@@QAE@XZ) referenced in function "public: __thiscall CBaseHMD::~CBaseHMD(void)" (??1CBaseHMD@@QAE@XZ)
1>C:\Harvest Engine\src\HVSTCORE\Debug\HVSTCORE.exe : fatal error LNK1120: 7 unresolved externals
« Last Edit: December 14, 2008, 02:04:30 am by MG-Zero »
Logged
|
i love big weenies and i cannot lie
|