Error LNK2002 compiling with VS2010 on Seven

Gerard
2012-09-04
2013-05-23
  • Gerard

    Gerard - 2012-09-04

    Hi,
    I try to compile llcon avec VS2010 on Windows Seven. 
    I follow carefully the instructions, y c the QT configuration,  but at the end, I have in release mode (debug mode don't works with QT Nokia) some LNK2001 errors "unresolved external symbol on soundbase.obj and sound.obj (see below).

    So 3 questions :
    - As someone a idea of the problem and a solution ?
    - Does llcon has been tested  (and used) with Windows Seven ? 
    - what is most stable O/S client  for llcon  : windows, linux, Mac ?
    Thank you in advance.
    Gerard

    1>client.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CSoundBase::metaObject(void)const " (?metaObject@CSoundBase@@UBEPBUQMetaObject@@XZ)
    1>main.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CSoundBase::metaObject(void)const " (?metaObject@CSoundBase@@UBEPBUQMetaObject@@XZ)
    1>sound.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CSoundBase::metaObject(void)const " (?metaObject@CSoundBase@@UBEPBUQMetaObject@@XZ)
    1>soundbase.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CSoundBase::metaObject(void)const " (?metaObject@CSoundBase@@UBEPBUQMetaObject@@XZ)
    1>client.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CSoundBase::qt_metacast(char const *)" (?qt_metacast@CSoundBase@@UAEPAXPBD@Z)
    1>main.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CSoundBase::qt_metacast(char const *)" (?qt_metacast@CSoundBase@@UAEPAXPBD@Z)
    1>sound.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CSoundBase::qt_metacast(char const *)" (?qt_metacast@CSoundBase@@UAEPAXPBD@Z)
    1>soundbase.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CSoundBase::qt_metacast(char const *)" (?qt_metacast@CSoundBase@@UAEPAXPBD@Z)
    1>client.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CSoundBase::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CSoundBase@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
    1>main.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CSoundBase::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CSoundBase@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
    1>sound.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CSoundBase::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CSoundBase@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
    1>soundbase.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CSoundBase::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CSoundBase@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
    1>sound.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const CSoundBase::staticMetaObject" (?staticMetaObject@CSoundBase@@2UQMetaObject@@B)
    1>soundbase.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const CSoundBase::staticMetaObject" (?staticMetaObject@CSoundBase@@2UQMetaObject@@B) referenced in function "class QString const __cdecl operator+(char const *,class QString const &)" (??H@YA?BVQString@@PBDABV0@@Z)
    1>sound.obj : error LNK2019: unresolved external symbol "protected: void __thiscall CSoundBase::ReinitRequest(int)" (?ReinitRequest@CSoundBase@@IAEXH@Z) referenced in function "public: void __thiscall CSoundBase::EmitReinitRequestSignal(enum ESndCrdResetType)" (?EmitReinitRequestSignal@CSoundBase@@QAEXW4ESndCrdResetType@@@Z)
    1>.\Release/llcon.exe : fatal error LNK1120: 5 unresolved externals

     
  • Gerard

    Gerard - 2012-09-04

    Oups, sorry …. the subject is about error LNK2001 and not 2002  !

     
  • Volker Fischer

    Volker Fischer - 2012-09-06

    Hi Gerard,

    - As someone a idea of the problem and a solution ?

    What source code did you use for compiling? If you use the Linux tar.gz file, the Windows sound files are not present. To compile the code under Windows, just take a snapshot of the latest CVS code and compile this.

    - Does llcon has been tested (and used) with Windows Seven ?

    I did not since I do not have a Windows 7 system at home…

    - what is most stable O/S client for llcon : windows, linux, Mac ?

    It used to be Linux but I think in the meanwhile, the Windows version should be the most stable one. Under Mac I sometimes have some weird problems with my USB sound card. But with the internal sound card, the version under Mac also runs very stable.

    Best Regards,
    Volker

     
  • Gerard

    Gerard - 2012-09-08

    Hello Volker,

    Thank you very much for this informations, llcon is a very interesting project. 

    On my part it runs now on ubuntu 12.04 LTS with the standard installation, and also on Seven but in a previous version of llcon.

    Best Regards,

    Gerard

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks