Unresolved external symbol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaelhsilva
    New Member
    • Feb 2012
    • 7

    Unresolved external symbol

    Hi, I´m migrating a VC++ 6.0 project to VC++ 2010.

    I am sure I am linking the right libraries but still getting this error:

    1>LBW_Base_Priv ate.obj : error LNK2019: unresolved external symbol "public: __thiscall LBW_Parser::~LB W_Parser(void)" (??1LBW_Parser@ @QAE@XZ) referenced in function __unwindfunclet $??0LBW_Base@@A AE@XZ$0
    1>LBW_Base_Priv ate.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall LBW_FieldList:: ~LBW_FieldList( void)" (??1LBW_FieldLi st@@UAE@XZ) referenced in function __unwindfunclet $??0LBW_Base@@A AE@XZ$0
    1>LBW_Base_Priv ate.obj : error LNK2019: unresolved external symbol "public: __thiscall LBW_Parser::LBW _Parser(void)" (??0LBW_Parser@ @QAE@XZ) referenced in function "private: __thiscall LBW_Base::LBW_B ase(void)" (??0LBW_Base@@A AE@XZ)
    1>LBW_Base_Priv ate.obj : error LNK2019: unresolved external symbol "public: __thiscall LBW_FieldList:: LBW_FieldList(v oid)" (??0LBW_FieldLi st@@QAE@XZ) referenced in function "private: __thiscall LBW_Base::LBW_B ase(void)" (??0LBW_Base@@A AE@XZ)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LBW_Base::IsFie ldIndexed(char const *)" (?IsFieldIndexe d@LBW_Base@@UAE _NPBD@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LBW_Base::CanHa veQuote(char const *)" (?CanHaveQuote@ LBW_Base@@UAE_N PBD@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LBW_Base::FullI ndexed(char const *)" (?FullIndexed@L BW_Base@@UAE_NP BD@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LBW_Base::IsMul tiValued(char const *)" (?IsMultiValued @LBW_Base@@UAE_ NPBD@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall LBW_Base::GetGr oup(char const *)" (?GetGroup@LBW_ Base@@UAEHPBD@Z )
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual int __thiscall LBW_Base::ItemF ound(char *)" (?ItemFound@LBW _Base@@EAEHPAD@ Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual int __thiscall LBW_Base::Updat e(int)" (?Update@LBW_Ba se@@EAEHH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual int __thiscall LBW_Base::Verif yIndex(int,int) " (?VerifyIndex@L BW_Base@@EAEHHH @Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual int __thiscall LBW_Base::Retur n(int)" (?Return@LBW_Ba se@@EAEHH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual int const * __thiscall LBW_Base::IntR( int,int)" (?IntR@LBW_Base @@EAEPBHHH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual double const * __thiscall LBW_Base::Doubl eR(int,int)" (?DoubleR@LBW_B ase@@EAEPBNHH@Z )
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual char * __thiscall LBW_Base::Strin g(int,int)" (?String@LBW_Ba se@@EAEPADHH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual int const * __thiscall LBW_Base::BoolR (int,int)" (?BoolR@LBW_Bas e@@EAEPBHHH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual class C_Date const * __thiscall LBW_Base::DateR (int,int)" (?DateR@LBW_Bas e@@EAEPBVC_Date @@HH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual class C_Time const * __thiscall LBW_Base::TimeR (int,int)" (?TimeR@LBW_Bas e@@EAEPBVC_Time @@HH@Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual char const * __thiscall LBW_Base::UserN ame(void)" (?UserName@LBW_ Base@@EAEPBDXZ)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual char const * __thiscall LBW_Base::UserP assword(void)" (?UserPassword@ LBW_Base@@EAEPB DXZ)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual char const * __thiscall LBW_Base::Serve rName(void)" (?ServerName@LB W_Base@@EAEPBDX Z)
    1>LBW_Base_Priv ate.obj : error LNK2001: unresolved external symbol "private: virtual char const * __thiscall LBW_Base::Clien tName(void)" (?ClientName@LB W_Base@@EAEPBDX Z)
    1>LBW_Base_Priv ate.obj : error LNK2019: unresolved external symbol "public: class ATL::CStringT<c har,class StrTraitMFC_DLL <char,class ATL::ChTraitsCR T<char> > > __thiscall LBW_Base::GetOp erator(char const *)" (?GetOperator@L BW_Base@@QAE?AV ?$CStringT@DV?$ StrTraitMFC_DLL @DV?$ChTraitsCR T@D@ATL@@@@@ATL @@PBD@Z) referenced in function "public: virtual class CASCString __thiscall LBW_Base::GetQu eryOperator(cha r *)" (?GetQueryOpera tor@LBW_Base@@U AE?AVCASCString @@PAD@Z)
    1>LBW_Base_Priv ate.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall LBW_Base::~LBW_ Base(void)" (??1LBW_Base@@U AE@XZ) referenced in function "public: virtual void * __thiscall LBW_Base::`scal ar deleting destructor'(uns igned int)" (??_GLBW_Base@@ UAEPAXI@Z)

    can you help me?
  • michaelhsilva
    New Member
    • Feb 2012
    • 7

    #2
    I did dumpbin with lbwparser.lib for example and I saw that LBWParser::LBWP arser(void) and LBWParser::~LBW Parser(void) are there.

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      You say that the code is in lbwparser.lib.

      Has this library been added to the liblist of your VC2010 project?

      project properties->confo\iguratio n properties->linker->input->additional dependencies?

      Comment

      • michaelhsilva
        New Member
        • Feb 2012
        • 7

        #4
        Yes I did. But error persists.

        Comment

        • michaelhsilva
          New Member
          • Feb 2012
          • 7

          #5
          Making the project as a static library the error disapear. But another error appear, may I open a new thread? the error is:

          1>c:\program files\microsoft sdks\windows\v7 .0a\include\oai dl.h(226): error C2143: syntax error : missing ';' before 'constant'
          1>c:\program files\microsoft sdks\windows\v7 .0a\include\oai dl.h(226): error C2059: syntax error : 'constant'

          on the line:

          typedef CY CURRENCY;

          Comment

          • weaknessforcats
            Recognized Expert Expert
            • Mar 2007
            • 9214

            #6
            Are you #include <windows.h> ?

            Comment

            • michaelhsilva
              New Member
              • Feb 2012
              • 7

              #7
              The error was solved when I reorganized the includes of a file .h to put #include <afxwin.h> to be the first. Go understand :) thanks for your replies.

              Comment

              Working...