Now i can compile map2dif under VC.NET
by Jorge Luis Gandulfo · in Torque Game Engine · 10/01/2003 (6:03 pm) · 12 replies
I just installed VB.NET, and downloaded the last head.
I can't compule map2dif project, this is the output.
I know this is a configuration problem maybe, can somebody help me out?
Linking...
engine_DEBUG.lib(audio.obj) : error LNK2019: unresolved external symbol "public: static class AudioStreamSource * __cdecl AudioStreamSourceFactory::getNewInstance(char const *)" (?getNewInstance@AudioStreamSourceFactory@@SAPAVAudioStreamSource@@PBD@Z) referenced in function "class AudioStreamSource * __cdecl createStreamingSource(char const *)" (?createStreamingSource@@YAPAVAudioStreamSource@@PBD@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: int __thiscall OggVorbisFile::ov_clear(void)" (?ov_clear@OggVorbisFile@@QAEHXZ) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: __int64 __thiscall OggVorbisFile::ov_pcm_total(int)" (?ov_pcm_total@OggVorbisFile@@QAE_JH@Z) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: struct vorbis_info * __thiscall OggVorbisFile::ov_info(int)" (?ov_info@OggVorbisFile@@QAEPAUvorbis_info@@H@Z) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: int __thiscall OggVorbisFile::ov_open(class Stream *,char *,long)" (?ov_open@OggVorbisFile@@QAEHPAVStream@@PADJ@Z) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: __thiscall OggVorbisFile::~OggVorbisFile(void)" (??1OggVorbisFile@@QAE@XZ) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: __thiscall OggVorbisFile::OggVorbisFile(void)" (??0OggVorbisFile@@QAE@XZ) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: long __thiscall OggVorbisFile::ov_read(char *,int,int,int *)" (?ov_read@OggVorbisFile@@QAEJPADHHPAH@Z) referenced in function "private: long __thiscall AudioBuffer::oggRead(class OggVorbisFile *,char *,int,int,int *)" (?oggRead@AudioBuffer@@AAEJPAVOggVorbisFile@@PADHHPAH@Z)
../tools/map2dif_DEBUG.exe : fatal error LNK1120: 8 unresolved externals
I can't compule map2dif project, this is the output.
I know this is a configuration problem maybe, can somebody help me out?
Linking...
engine_DEBUG.lib(audio.obj) : error LNK2019: unresolved external symbol "public: static class AudioStreamSource * __cdecl AudioStreamSourceFactory::getNewInstance(char const *)" (?getNewInstance@AudioStreamSourceFactory@@SAPAVAudioStreamSource@@PBD@Z) referenced in function "class AudioStreamSource * __cdecl createStreamingSource(char const *)" (?createStreamingSource@@YAPAVAudioStreamSource@@PBD@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: int __thiscall OggVorbisFile::ov_clear(void)" (?ov_clear@OggVorbisFile@@QAEHXZ) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: __int64 __thiscall OggVorbisFile::ov_pcm_total(int)" (?ov_pcm_total@OggVorbisFile@@QAE_JH@Z) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: struct vorbis_info * __thiscall OggVorbisFile::ov_info(int)" (?ov_info@OggVorbisFile@@QAEPAUvorbis_info@@H@Z) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: int __thiscall OggVorbisFile::ov_open(class Stream *,char *,long)" (?ov_open@OggVorbisFile@@QAEHPAVStream@@PADJ@Z) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: __thiscall OggVorbisFile::~OggVorbisFile(void)" (??1OggVorbisFile@@QAE@XZ) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: __thiscall OggVorbisFile::OggVorbisFile(void)" (??0OggVorbisFile@@QAE@XZ) referenced in function "private: bool __thiscall AudioBuffer::readOgg(class ResourceObject *)" (?readOgg@AudioBuffer@@AAE_NPAVResourceObject@@@Z)
engine_DEBUG.lib(audioBuffer.obj) : error LNK2019: unresolved external symbol "public: long __thiscall OggVorbisFile::ov_read(char *,int,int,int *)" (?ov_read@OggVorbisFile@@QAEJPADHHPAH@Z) referenced in function "private: long __thiscall AudioBuffer::oggRead(class OggVorbisFile *,char *,int,int,int *)" (?oggRead@AudioBuffer@@AAEJPAVOggVorbisFile@@PADHHPAH@Z)
../tools/map2dif_DEBUG.exe : fatal error LNK1120: 8 unresolved externals
#2
C++
General
Additional Directories
the directory missing in the Lib project was
../lib/vorbis/include
this also was missing in map2dif, but still i can't make it work.
10/02/2003 (4:55 am)
In fact there was missing a directory in the C++
General
Additional Directories
the directory missing in the Lib project was
../lib/vorbis/include
this also was missing in map2dif, but still i can't make it work.
#4
-Ron
10/05/2003 (5:26 am)
In addition to adding the ../lib/include/vorbis; you will need to add the ../lib/vorbos/win32 to the additional lib paths as well as add ogg.lib and vorbis.lib to the list of libary files VC.NET will use to link against.-Ron
#5
And ..lib/vorbis/include as additional include directories.
Adding also the ogg_static.lib and the vorbis_static_mt.lib.
After it won't compile, still the same errors, this is making me mad.
10/05/2003 (12:26 pm)
I added ..lib/vorbis/win32 to additional library directories.And ..lib/vorbis/include as additional include directories.
Adding also the ogg_static.lib and the vorbis_static_mt.lib.
After it won't compile, still the same errors, this is making me mad.
#6
10/06/2003 (6:09 am)
Did you add them to the map2dif project or to the TGE library project?
#7
in the Source files / Audio, there are several things that aren't in the Library.
After adding this files manually, all will compile.
Then WHY THE HECK we have two different projects in a cvs maintained application?
This is making me nuts, i suggest we merge things a bit to have the code in just one place.
10/06/2003 (8:28 am)
The problem is simple, the Torque Demo Project have files the Torque Library doesn't.in the Source files / Audio, there are several things that aren't in the Library.
After adding this files manually, all will compile.
Then WHY THE HECK we have two different projects in a cvs maintained application?
This is making me nuts, i suggest we merge things a bit to have the code in just one place.
#8
I assume you're using VC6/VC7. On other build systems (like GCC), I think the approaches are a bit more unified, though still disparate.
10/06/2003 (9:28 am)
I talked to MarkF briefly about this. The reason there are two projects is because of the way the linker strips data from the library. Torque Demo has all the scripting engine stuff in it; Torque Lib doesn't. CVS has nothing to do with this. :)I assume you're using VC6/VC7. On other build systems (like GCC), I think the approaches are a bit more unified, though still disparate.
#9
As Jorge mentioned their is a problemw tiht eh TGE Lib project, when changes were made to the Audo files and the PlatformAudio.h they were not made to the TGE lib project, which in turn makes the lib project uncompileable. I had to add the addition Audio files to the lib project in order for it to compile correctly.
This does effect map2dif and any other project that links against the TGE lib
-Ron
10/06/2003 (11:14 am)
@Ben,As Jorge mentioned their is a problemw tiht eh TGE Lib project, when changes were made to the Audo files and the PlatformAudio.h they were not made to the TGE lib project, which in turn makes the lib project uncompileable. I had to add the addition Audio files to the lib project in order for it to compile correctly.
This does effect map2dif and any other project that links against the TGE lib
-Ron
#10
In another thread, I asked him if he was using VC7 (as I have apparently become the Keeper of the VC7 Project Files). If he needs them, I will fix them. I assume that VC6 is updated, since that's what the GG guys are working off of.
My post was not disagreeing with with Jorge's assessment of the porblem, just pointing out why the Torque Lib/Torque Demo projects won't be merged.
- Ben
10/06/2003 (1:16 pm)
@Ron,In another thread, I asked him if he was using VC7 (as I have apparently become the Keeper of the VC7 Project Files). If he needs them, I will fix them. I assume that VC6 is updated, since that's what the GG guys are working off of.
My post was not disagreeing with with Jorge's assessment of the porblem, just pointing out why the Torque Lib/Torque Demo projects won't be merged.
- Ben
#11
About the merging, well itsn't a merge, its simply having the code where it must be.
For example all the scripting code could be at the torque demo, and the engine code at the library, so the torque demo won't have duplicated things in the project.
This is just an idea to make things better, if it can't be done, no problem, but i think it could be a better way to organize arround and share code.
10/06/2003 (4:17 pm)
I fixed it Ben, no need for you to hurry, i just noticed this and tried to tell others.About the merging, well itsn't a merge, its simply having the code where it must be.
For example all the scripting code could be at the torque demo, and the engine code at the library, so the torque demo won't have duplicated things in the project.
This is just an idea to make things better, if it can't be done, no problem, but i think it could be a better way to organize arround and share code.
#12
10/06/2003 (6:19 pm)
Ok. :)
Associate Kyle Carter
That probably means the Torque Lib project isn't compiling right. You can fix this by making sure that all the settings in Torque Lib are the same as in Torque Demo. Alternatively, I can get off my butt and update the project file...
I'll try to do that by the weekend.