Game Development Community

Compiling with Visual Studio 2005 weird problem

by Vern Jensen · in Torque Game Builder · 09/03/2009 (2:00 am) · 1 replies

Okay, so I've been compiling TGB just fine under Windows for some time now, using Visual Studio 2005. I recently installed a *fresh* copy of TGB 1.7.4, because I had modified some files that I needed to revert to their original versions.

I'm not sure what I did, but somehow now I can't find the projects I used to use to compile TGB in Visual Studio! I used to just launch Visual Studio and open up the shortcut to the TGB project from within Visual Studio. But that was opening up my freshly installed TGB 1.7.4 project instead of the old one (the one with all my source code modifications), so I trashed the fresh install, but now can't get my old project to run correctly.

I've tried opening up both the "TGBGame" and "ToqueGameBuilder" VC++ projects in my old install's Engine/Compilers/Visual Studio 2005 folder, but neither are what I was using, and won't compile properly. (When I try to build using the TGBGame project, I get the Link errors listed below.) I used to be using a different project -- a sort of a "master" project that could build both TGBGame AND TorqueGameBuilder. I seem to remember if I selected "Batch Build" it had about 8 different options -- perhaps more. Now I can't find this "master project." My "Batch build" window for either project only contains 2 options. If anyone could point me to where this "master project" file is, or give some hint about what I'm doing wrong, I'd be much obliged. I'm not a Windows person -- I use Macs -- so this is all kinda foreign to me.


1>Linking...
1>zipSubStream.obj : error LNK2019: unresolved external symbol _inflateInit2_ referenced in function "public: virtual bool __thiscall ZipSubRStream::attachStream(class Stream *)" (?attachStream@ZipSubRStream@@UAE_NPAVStream@@@Z)
1>zipSubStream.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function "public: virtual void __thiscall ZipSubRStream::detachStream(void)" (?detachStream@ZipSubRStream@@UAEXXZ)
1>zipSubStream.obj : error LNK2019: unresolved external symbol _inflate referenced in function "protected: virtual bool __thiscall ZipSubRStream::_read(unsigned int,void *)" (?_read@ZipSubRStream@@MAE_NIPAX@Z)
1>zipSubStream.obj : error LNK2019: unresolved external symbol _deflateInit2_ referenced in function "public: virtual bool __thiscall ZipSubWStream::attachStream(class Stream *)" (?attachStream@ZipSubWStream@@UAE_NPAVStream@@@Z)
[SNIP]
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifGetExtensionNext referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifGetExtension referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifCloseFile referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifGetLine referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifGetImageDesc referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifGetRecordType referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapGif.obj : error LNK2019: unresolved external symbol _DGifOpen referenced in function "public: bool __thiscall GBitmap::readGIF(class Stream &)" (?readGIF@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapJpeg.obj : error LNK2019: unresolved external symbol _jpeg_finish_decompress referenced in function "public: bool __thiscall GBitmap::readJPEG(class Stream &)" (?readJPEG@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapJpeg.obj : error LNK2019: unresolved external symbol _jpeg_read_scanlines referenced in function "public: bool __thiscall GBitmap::readJPEG(class Stream &)" (?readJPEG@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapJpeg.obj : error LNK2019: unresolved external symbol _jpeg_start_decompress referenced in function "public: bool __thiscall GBitmap::readJPEG(class Stream &)" (?readJPEG@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapJpeg.obj : error LNK2019: unresolved external symbol _jpeg_destroy_decompress referenced in function "public: bool __thiscall GBitmap::readJPEG(class Stream &)" (?readJPEG@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapJpeg.obj : error LNK2019: unresolved external symbol _jpeg_read_header referenced in function "public: bool __thiscall GBitmap::readJPEG(class Stream &)" (?readJPEG@GBitmap@@QAE_NAAVStream@@@Z)
[SNIP]
1>bitmapPng.obj : error LNK2019: unresolved external symbol _png_read_end referenced in function "public: bool __thiscall GBitmap::readPNG(class Stream &)" (?readPNG@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapPng.obj : error LNK2019: unresolved external symbol _png_read_image referenced in function "public: bool __thiscall GBitmap::readPNG(class Stream &)" (?readPNG@GBitmap@@QAE_NAAVStream@@@Z)
1>bitmapPng.obj : error LNK2019: unresolved external symbol _png_get_rowbytes referenced in function "public: bool __thiscall GBitmap::readPNG(class Stream &)" (?readPNG@GBitmap@@QAE_NAAVStream@@@Z)
[SNIP]
1>gNewFont.obj : error LNK2019: unresolved external symbol _uncompress referenced in function "public: bool __thiscall GFont::read(class Stream &)" (?read@GFont@@QAE_NAAVStream@@@Z)
1>gNewFont.obj : error LNK2019: unresolved external symbol _compress2 referenced in function "public: bool __thiscall GFont::write(class Stream &)" (?write@GFont@@QAE_NAAVStream@@@Z)
1>../../../tgb/gameData/T2DProject/TGBGame_DEBUG.exe : fatal error LNK1120: 61 unresolved externals

#1
09/03/2009 (2:05 am)
One additional note: when I trashed the 1.7.4 fresh install I had made, I simply dragged the folder to the Recycle Bin and emptied it. I did not use the "Uninstall" script (which I just noticed is there). Not sure if that has anything to do with my problem.