On 9/22/05, Frederic Bouvier <[EMAIL PROTECTED]> wrote:
> Selon bass pumped :
>
> > Hi everyone,
> >
> > I tried to compile the latest version of flightgear today in MSVC 7.
> > It compiled fine... but then I had problems when it tried linking.
> > Any ideas on how to fix it would help.
> >
> > Thank you in advance.
> >
> >
> > Start ouput >>
> > Linking...
> > LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
> > '/INCREMENTAL:NO' specification
> > LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of
> > other libs; use /NODEFAULTLIB:library
>
> Don't use that option. Be sure you compiled all programs and libraries with 
> the
> same 'Code Generation' options. /MT is fine if it is everywhere.
>
> > .\Debug/FlightGear.exe : fatal error LNK1120: 119 unresolved externals
>
> You have to add all the files containing the unresolved symbols in you 
> solution
> in order to compile and link them to fgfs.exe
>
> For exemple, in the line :
>
> environment.obj : error LNK2019: unresolved external symbol "public:
> bool __thiscall SGEnviro::get_turbulence_enable_state(void)const "
> ([EMAIL PROTECTED]@@QBE_NXZ) referenced in
> function "public: virtual double __thiscall
> FGEnvironment::get_turbulence_magnitude_norm(void)const "
> ([EMAIL PROTECTED]@@UBENXZ)
>
> it is said that the SGEnviro class ( the name before :: ) is missing. A quick
> search in the source tree tells me that it is in
> simgear/environment/visual_enviro.cxx that has to be added in the simgear
> project file. Do that until you have no unresolved external.
>
> -Fred
>
Hi Fred,

Thanks a lot for your suggestion.  It helped and I managed to get rid
of some of the linking errors.  But I'm still stuck with another 74
errors I hope you will be able to help me locate and fixed.  I've
noticed the errors revolve around the gz function, the sgsoundmanager
(which to me looks like an maybe an openal error??)...  If you could
take a quick look at the error output and point me in the right
direction.

Thank you very much.

Start output>>

Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in
LIBCMT.lib(malloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __nh_malloc already defined
in LIBCMT.lib(malloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __heap_alloc already defined
in LIBCMT.lib(malloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in
LIBCMT.lib(calloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in
LIBCMT.lib(realloc.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _free already defined in
LIBCMT.lib(free.obj)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __msize already defined in
LIBCMT.lib(msize.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: __get_sbh_threshold already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: __set_sbh_threshold already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_heap_init already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_find_block already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_free_block already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_alloc_block already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_alloc_new_region
already defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_alloc_new_group
already defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_resize_block already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_heapmin already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(sbheap.obj) : error LNK2005: ___sbh_heap_check already
defined in LIBCMT.lib(sbheap.obj)
LIBCMTD.lib(isctype.obj) : error LNK2005: __isctype already defined in
LIBCMT.lib(isctype.obj)
LIBCMTD.lib(isctype.obj) : error LNK2005: ___isctype_mt already
defined in LIBCMT.lib(isctype.obj)
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of
other libs; use /NODEFAULTLIB:library
new_gui.obj : error LNK2001: unresolved external symbol "class puFont
FONT_SANS_12B" (?FONT_SANS_12B@@3VpuFont@@A)
new_gui.obj : error LNK2001: unresolved external symbol "class puFont
FONT_HELVETICA_14" (?FONT_HELVETICA_14@@3VpuFont@@A)
main.obj : error LNK2019: unresolved external symbol
__imp__alListenerf referenced in function "public: void __thiscall
SGSoundMgr::set_volume(float)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
fg_fx.obj : error LNK2001: unresolved external symbol __imp__alListenerf
SimGear.lib(soundmgr_openal.obj) : error LNK2001: unresolved external
symbol __imp__alListenerf
main.obj : error LNK2019: unresolved external symbol
__imp__alListenerfv referenced in function "public: void __thiscall
SGSoundMgr::set_listener_pos(float *)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2001: unresolved external
symbol __imp__alListenerfv
SimGear.lib(zfstream.obj) : error LNK2019: unresolved external symbol
_gzopen referenced in function "public: class gzfilebuf * __thiscall
gzfilebuf::open(char const *,int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)
SimGear.lib(texture.obj) : error LNK2001: unresolved external symbol _gzopen
SimGear.lib(sg_binobj.obj) : error LNK2001: unresolved external symbol _gzopen
SimGear.lib(zfstream.obj) : error LNK2019: unresolved external symbol
_gzdopen referenced in function "public: class gzfilebuf * __thiscall
gzfilebuf::attach(int,int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)
SimGear.lib(zfstream.obj) : error LNK2019: unresolved external symbol
_gzclose referenced in function "public: class gzfilebuf * __thiscall
gzfilebuf::close(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
SimGear.lib(texture.obj) : error LNK2001: unresolved external symbol _gzclose
SimGear.lib(sg_binobj.obj) : error LNK2001: unresolved external symbol _gzclose
SimGear.lib(zfstream.obj) : error LNK2019: unresolved external symbol
_gzwrite referenced in function "private: int __thiscall
gzfilebuf::flushbuf(void)" ([EMAIL PROTECTED]@@AAEHXZ)
SimGear.lib(lowlevel.obj) : error LNK2001: unresolved external symbol _gzwrite
SimGear.lib(zfstream.obj) : error LNK2019: unresolved external symbol
_gzread referenced in function "private: int __thiscall
gzfilebuf::fillbuf(void)" ([EMAIL PROTECTED]@@AAEHXZ)
SimGear.lib(texture.obj) : error LNK2001: unresolved external symbol _gzread
SimGear.lib(lowlevel.obj) : error LNK2001: unresolved external symbol _gzread
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alDopplerVelocity referenced in function "public:
__thiscall SGSoundMgr::SGSoundMgr(void)" (??0SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alDopplerFactor referenced in function "public:
__thiscall SGSoundMgr::SGSoundMgr(void)" (??0SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alGetError referenced in function "public: __thiscall
SGSoundMgr::SGSoundMgr(void)" (??0SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(sample_openal.obj) : error LNK2001: unresolved external
symbol __imp__alGetError
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alcMakeContextCurrent referenced in function "public:
__thiscall SGSoundMgr::SGSoundMgr(void)" (??0SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alcCreateContext referenced in function "public:
__thiscall SGSoundMgr::SGSoundMgr(void)" (??0SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alcOpenDevice referenced in function "public: __thiscall
SGSoundMgr::SGSoundMgr(void)" (??0SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alcDestroyContext referenced in function "public:
__thiscall SGSoundMgr::~SGSoundMgr(void)" (??1SGSoundMgr@@[EMAIL PROTECTED])
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alcSuspendContext referenced in function "public: void
__thiscall SGSoundMgr::pause(void)" ([EMAIL PROTECTED]@@QAEXXZ)
SimGear.lib(soundmgr_openal.obj) : error LNK2019: unresolved external
symbol __imp__alcProcessContext referenced in function "public: void
__thiscall SGSoundMgr::resume(void)" ([EMAIL PROTECTED]@@QAEXXZ)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol _alutUnloadWAV referenced in function "public: __thiscall
SGSoundSample::SGSoundSample(char const *,char const *,bool)"
(??0SGSoundSample@@[EMAIL PROTECTED]@Z)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alBufferData referenced in function "public: __thiscall
SGSoundSample::SGSoundSample(char const *,char const *,bool)"
(??0SGSoundSample@@[EMAIL PROTECTED]@Z)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol _alutLoadWAVFile referenced in function "public: __thiscall
SGSoundSample::SGSoundSample(char const *,char const *,bool)"
(??0SGSoundSample@@[EMAIL PROTECTED]@Z)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alGenBuffers referenced in function "public: __thiscall
SGSoundSample::SGSoundSample(char const *,char const *,bool)"
(??0SGSoundSample@@[EMAIL PROTECTED]@Z)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alDeleteBuffers referenced in function "public:
__thiscall SGSoundSample::~SGSoundSample(void)"
(??1SGSoundSample@@[EMAIL PROTECTED])
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alSourcePlay referenced in function "public: void
__thiscall SGSoundSample::play(bool)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alSourcei referenced in function "public: void
__thiscall SGSoundSample::play(bool)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alSourceStop referenced in function "public: void
__thiscall SGSoundSample::play(bool)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alDeleteSources referenced in function "public: void
__thiscall SGSoundSample::stop(void)" ([EMAIL PROTECTED]@@QAEXXZ)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alSourcefv referenced in function "private: bool
__thiscall SGSoundSample::bind_source(void)"
([EMAIL PROTECTED]@@AAE_NXZ)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alSourcef referenced in function "private: bool
__thiscall SGSoundSample::bind_source(void)"
([EMAIL PROTECTED]@@AAE_NXZ)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alGenSources referenced in function "private: bool
__thiscall SGSoundSample::bind_source(void)"
([EMAIL PROTECTED]@@AAE_NXZ)
SimGear.lib(sample_openal.obj) : error LNK2019: unresolved external
symbol __imp__alGetSourcei referenced in function "public: bool
__thiscall SGSoundSample::is_playing(void)"
([EMAIL PROTECTED]@@QAE_NXZ)
SimGear.lib(texture.obj) : error LNK2019: unresolved external symbol
_gzseek referenced in function "protected: struct SGTexture::_ImageRec
* __thiscall SGTexture::ImageOpen(char const *)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
SimGear.lib(code.obj) : error LNK2019: unresolved external symbol
_naUnlock referenced in function _naNewContext
SimGear.lib(gc.obj) : error LNK2001: unresolved external symbol _naUnlock
SimGear.lib(code.obj) : error LNK2019: unresolved external symbol
_naLock referenced in function _naNewContext
SimGear.lib(gc.obj) : error LNK2001: unresolved external symbol _naLock
SimGear.lib(code.obj) : error LNK2019: unresolved external symbol
_naNewLock referenced in function _initGlobals
SimGear.lib(code.obj) : error LNK2019: unresolved external symbol
_naNewSem referenced in function _initGlobals
SimGear.lib(gc.obj) : error LNK2019: unresolved external symbol
_naSemUpAll referenced in function _bottleneck
SimGear.lib(gc.obj) : error LNK2019: unresolved external symbol
_naSemDown referenced in function _bottleneck
SimGear.lib(lowlevel.obj) : error LNK2019: unresolved external symbol
_gzgetc referenced in function "void __cdecl sgReadString(void *,char
* *)" (?sgReadString@@[EMAIL PROTECTED])
SimGear.lib(lowlevel.obj) : error LNK2019: unresolved external symbol
_gzputc referenced in function "void __cdecl sgWriteString(void *,char
const *)" (?sgWriteString@@[EMAIL PROTECTED])
.\Debug/FlightGear.exe : fatal error LNK1120: 40 unresolved externals

<<end output

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to