unresolved symbols

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thotasri
    New Member
    • Mar 2011
    • 3

    unresolved symbols

    when I am porting my project from Vc6 to vc10 i am getting the following linker errors .actully I am using opencv library for this project .Can any body help me to resolve this problem.


    ------ Build started: Project: Personal_Authen ticationsystem1 mar11, Configuration: Debug Win32 ------
    1>Build started 3/14/2011 10:02:13 AM.
    1>InitializeBui ldStatus:
    1> Touching "Debug\Personal _Authentication system1mar11.un successfulbuild ".
    1>ClCompile:
    1> All outputs are up-to-date.
    1> Image.cpp
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(216): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(266): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(368): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(558): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(562): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(600): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(604): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(647): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(651): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(688): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(692): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(753): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(757): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(807): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(811): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(828): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(832): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(856): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(860): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(878): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(882): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1122): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1199): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1200): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1240): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1241): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1800): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1882): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(2450): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(2451): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(2467): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(2468): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(2519): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(2520): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>f:\vcprojects \personal_authe nticationsystem 1mar11\image.cp p(1811): warning C4700: uninitialized local variable 'curr_x' used
    1>ResourceCompi le:
    1> All outputs are up-to-date.
    1>ManifestResou rceCompile:
    1> All outputs are up-to-date.
    1>Image.obj : error LNK2019: unresolved external symbol _ijlFree@4 referenced in function "public: int __thiscall Image::LoadFrom JPGFile(class ATL::CStringT<c har,class StrTraitMFC_DLL <char,class ATL::ChTraitsCR T<char> > >)" (?LoadFromJPGFi le@Image@@QAEHV ?$CStringT@DV?$ StrTraitMFC_DLL @DV?$ChTraitsCR T@D@ATL@@@@@ATL @@@Z)
    1>Image.obj : error LNK2019: unresolved external symbol _ijlRead@8 referenced in function "public: int __thiscall Image::LoadFrom JPGFile(class ATL::CStringT<c har,class StrTraitMFC_DLL <char,class ATL::ChTraitsCR T<char> > >)" (?LoadFromJPGFi le@Image@@QAEHV ?$CStringT@DV?$ StrTraitMFC_DLL @DV?$ChTraitsCR T@D@ATL@@@@@ATL @@@Z)
    1>Image.obj : error LNK2019: unresolved external symbol _ijlInit@4 referenced in function "public: int __thiscall Image::LoadFrom JPGFile(class ATL::CStringT<c har,class StrTraitMFC_DLL <char,class ATL::ChTraitsCR T<char> > >)" (?LoadFromJPGFi le@Image@@QAEHV ?$CStringT@DV?$ StrTraitMFC_DLL @DV?$ChTraitsCR T@D@ATL@@@@@ATL @@@Z)
    1>Personal_Auth enticationsyste m1mar11View.obj : error LNK2019: unresolved external symbol _cvLoadImage referenced in function "public: void __thiscall CPersonal_Authe nticationsystem 1mar11View::OnF ileOpen(void)" (?OnFileOpen@CP ersonal_Authent icationsystem1m ar11View@@QAEXX Z)
    1>F:\VCPROJECTS \Personal_Authe nticationsystem 1mar11\Debug\Pe rsonal_Authenti cationsystem1ma r11.exe : fatal error LNK1120: 4 unresolved externals
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:13.83
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    An unresolved external is a symbol that you have told the compiler exists in one file but that is not defined in any other file.

    The reasons you get an unresolved external may be (but are not limited to)
    • You have forgotten to include a library in you link
    • You have forgotten to include an cpp file in the compile/link (build)
    • You have forgotten to implement a function anywhere
    • A preprocessor symbol has the wrong value cause a chunk of code to not be compiled
    • There is a typo in the name

    Comment

    • thotasri
      New Member
      • Mar 2011
      • 3

      #3
      Hi Banfa,

      Thanks for your response.Ya its true Now I corrected all the linker errors and the system is working fine but again after running 3 times the following build error is coming i am confusing why this? Actually this projetc is working perfectly in VS 6 .After changing the version to vs2010 all these problems are coming.I am using opencv library in this project.

      Thanks in advance


      Originally posted by Banfa
      Banfa has responded to your question on Bytes.com:

      unresolved symbols

      Reminder: please mark select "choose as best answer" for the reply that solves your question.

      *************** **
      This is an automated message, do not reply

      Comment

      • thotasri
        New Member
        • Mar 2011
        • 3

        #4
        sorry i forgot to mention error in the reply

        fatal error C1083: Cannot open precompiled header file: '.\Debug\WebCam Read.pch': No such file or directory
        1>

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          You got his error by not having precompiled header files.

          I suspect you created a Win32 console application but failed to click on "Applicatio n Settings" where you can specify that you are not using precompiled headers.

          Just go to your project properties and for the "Precompile d header" property just specify "not using precompiled headers". The C1083 will now go away

          Comment

          Working...