Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unresloved External symbols [modified]

Unresloved External symbols [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpcsharpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhogavalli suresh
    wrote on last edited by
    #1

    when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................

    C N 3 Replies Last reply
    0
    • B bhogavalli suresh

      when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................

      C Offline
      C Offline
      chandu004
      wrote on last edited by
      #2

      usually when you use some variable or function, without including the headerfile, where it is defined, you will get such problems. are you facing any?

      C 1 Reply Last reply
      0
      • C chandu004

        usually when you use some variable or function, without including the headerfile, where it is defined, you will get such problems. are you facing any?

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        No, not at all. This is a linker error, meaning that the compilation went ok (so, all required header files were included). But, the linker cannot find a variable. It comes usually because you declared somewhere an extern variable (with the extern keyword) but forgot to define it in a specific cpp file.


        Cédric Moonen Software developer
        Charting control [v1.2]

        1 Reply Last reply
        0
        • B bhogavalli suresh

          when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          Check whether you have added the cpp file in the project( take the file view and check the cpp file is under the "Source Files" ).

          nave [OpenedFileFinder]

          1 Reply Last reply
          0
          • B bhogavalli suresh

            when do we get this kind of errors................. i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it............. dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me................. yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs plz help me..................

            C Offline
            C Offline
            chandu004
            wrote on last edited by
            #5

            you mean it is working in vc6 and not in .net 2003.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups