Game Development Community

Trouble compiling

by Scottie Sirius · in Torque 3D Professional · 12/18/2010 (11:11 pm) · 2 replies

I'm getting an error when I try to compile my project and don't know how to resolve it. If anyone knows the answer I would appreciate the help!
Here's the error:

1>videoEncoderTheora.obj : error LNK2019: unresolved external symbol _th_encode_flushheader referenced in function "public: virtual bool __thiscall VideoEncoderTheora::begin(void)" (?begin@VideoEncoderTheora@@UAE_NXZ)
1>videoEncoderTheora.obj : error LNK2019: unresolved external symbol _th_encode_ctl referenced in function "public: virtual bool __thiscall VideoEncoderTheora::begin(void)" (?begin@VideoEncoderTheora@@UAE_NXZ)
1>videoEncoderTheora.obj : error LNK2019: unresolved external symbol _th_encode_alloc referenced in function "public: virtual bool __thiscall VideoEncoderTheora::begin(void)" (?begin@VideoEncoderTheora@@UAE_NXZ)
1>videoEncoderTheora.obj : error LNK2019: unresolved external symbol _th_encode_free referenced in function "public: virtual bool __thiscall VideoEncoderTheora::end(void)" (?end@VideoEncoderTheora@@UAE_NXZ)
1>videoEncoderTheora.obj : error LNK2019: unresolved external symbol _th_encode_packetout referenced in function "private: void __thiscall VideoEncoderTheora::encodeFrame(class GBitmap *,bool)" (?encodeFrame@VideoEncoderTheora@@AAEXPAVGBitmap@@_N@Z)
1>videoEncoderTheora.obj : error LNK2019: unresolved external symbol _th_encode_ycbcr_in referenced in function "private: void __thiscall VideoEncoderTheora::encodeFrame(class GBitmap *,bool)" (?encodeFrame@VideoEncoderTheora@@AAEXPAVGBitmap@@_N@Z)
1>../../../game/Blood Clans.dll : fatal error LNK1120: 6 unresolved externals

#1
12/19/2010 (12:04 am)
you added something that uses something from theora?
dont know what you did, but it seems like:

at link time, its looking for something, and not finding it.
its usualy if you add as an include, or add an h file to the solution, but the definition isnt found.

did you add an h file to your build, but not its cpp file? add it

did you add an h file as an include, but not its cpp file to the build? add it

did you call a function, found it was looking for a h file, and you added the include so the function could be called? add the cpp to the build.

most times it wont build, but thats why you get the error anyway.

dunno, guessing here
#2
12/19/2010 (1:08 am)
I found the problem, for some reason an entire directory was missing out of the source for libtheora.