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. Linkage Problem in MSVC 2008 (wxWidget 3.0 Application)

Linkage Problem in MSVC 2008 (wxWidget 3.0 Application)

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpvisual-studiojsonquestion
11 Posts 3 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.
  • U Offline
    U Offline
    User 11224092
    wrote on last edited by
    #1

    Hi, I'm developing a wxWidgets 3.0 project using this Json_spirit library with boost 1_46_0 in Visual Studio 2008. I Edited all the Additional directories and Additional Dependencies in the properties After compiling the project I'm getting linkage error like " error LNK2019: unresolved external symbol "bool __cdecl json_spirit::read(class std::basic_istream<char,struct std::char_traits<char> > &,class json_spirit::Value_impl<struct json_spirit::Config_vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?J_read@json_spirit@@YA_NAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@AEAV?$Value_impl@U?$Config_vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@json_spirit@@@1@@Z) referenced in function "private: class wxWindow * __cdecl HiFrame::ReadingJson(class wxWindow *,class wxString &,class wxString &)" (?ReadingJson@HiFrame@@AEAAPEAVwxWindow@@PEAV2@AEAVwxString@@1@Z) " can anybody help me out to resolve this problem.?? thanks..

    L 1 Reply Last reply
    0
    • U User 11224092

      Hi, I'm developing a wxWidgets 3.0 project using this Json_spirit library with boost 1_46_0 in Visual Studio 2008. I Edited all the Additional directories and Additional Dependencies in the properties After compiling the project I'm getting linkage error like " error LNK2019: unresolved external symbol "bool __cdecl json_spirit::read(class std::basic_istream<char,struct std::char_traits<char> > &,class json_spirit::Value_impl<struct json_spirit::Config_vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?J_read@json_spirit@@YA_NAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@AEAV?$Value_impl@U?$Config_vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@json_spirit@@@1@@Z) referenced in function "private: class wxWindow * __cdecl HiFrame::ReadingJson(class wxWindow *,class wxString &,class wxString &)" (?ReadingJson@HiFrame@@AEAAPEAVwxWindow@@PEAV2@AEAVwxString@@1@Z) " can anybody help me out to resolve this problem.?? thanks..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You are missing a library in your linker section. Check the documentation for the library in question and it will tell you what you need to include.

      U 1 Reply Last reply
      0
      • L Lost User

        You are missing a library in your linker section. Check the documentation for the library in question and it will tell you what you need to include.

        U Offline
        U Offline
        User 11224092
        wrote on last edited by
        #3

        "json_spirit.h" i have included this file for reading json file.

        J 1 Reply Last reply
        0
        • U User 11224092

          "json_spirit.h" i have included this file for reading json file.

          J Offline
          J Offline
          Jochen Arndt
          wrote on last edited by
          #4

          Member 11258353 wrote:

          "json_spirit.h" i have included this file for reading json file.

          That is a header file used during compilation. But you got a linker error telling you that a library is missing (the name may be json_spirit.lib).

          U 1 Reply Last reply
          0
          • J Jochen Arndt

            Member 11258353 wrote:

            "json_spirit.h" i have included this file for reading json file.

            That is a header file used during compilation. But you got a linker error telling you that a library is missing (the name may be json_spirit.lib).

            U Offline
            U Offline
            User 11224092
            wrote on last edited by
            #5

            yeah, I have included that lib also(json_spirit_lib.lib) which is in json_spirit_v4.08\Debug path. Still, The error is coming.

            J 1 Reply Last reply
            0
            • U User 11224092

              yeah, I have included that lib also(json_spirit_lib.lib) which is in json_spirit_v4.08\Debug path. Still, The error is coming.

              J Offline
              J Offline
              Jochen Arndt
              wrote on last edited by
              #6

              Check the name and path of the library and the corresponding project settings. The path must be part of the library search path or the complete path must be specified.

              U 1 Reply Last reply
              0
              • J Jochen Arndt

                Check the name and path of the library and the corresponding project settings. The path must be part of the library search path or the complete path must be specified.

                U Offline
                U Offline
                User 11224092
                wrote on last edited by
                #7

                Okay, For json_spirit_lib.lib in properties->linker->additional Library directory i gave this path "D:\json_spirit_v4.08\Debug" For json_spirit.h in properties->c++->additional include directories i gave this path "D:\json_spirit_v4.08\json_spirit" For boosting in properties->c++->additional include directories i gave this path "D:\boost_1_46_0" In properties->linker->Input->Additional dependencies i included json_spirit_lib.lib. Still not getting,,

                J 1 Reply Last reply
                0
                • U User 11224092

                  Okay, For json_spirit_lib.lib in properties->linker->additional Library directory i gave this path "D:\json_spirit_v4.08\Debug" For json_spirit.h in properties->c++->additional include directories i gave this path "D:\json_spirit_v4.08\json_spirit" For boosting in properties->c++->additional include directories i gave this path "D:\boost_1_46_0" In properties->linker->Input->Additional dependencies i included json_spirit_lib.lib. Still not getting,,

                  J Offline
                  J Offline
                  Jochen Arndt
                  wrote on last edited by
                  #8

                  To get more information you should enable verbose output for the linker (Project Settings - Linker - General - Show progress: VERBOSE). You may also use the dumpbin command line utility (in the VC/bin directory) to check which functions are exported by the library. The library must be build for your VS version. Did you build it yourself? Did you get only one or multiple linker errors?

                  U 1 Reply Last reply
                  0
                  • J Jochen Arndt

                    To get more information you should enable verbose output for the linker (Project Settings - Linker - General - Show progress: VERBOSE). You may also use the dumpbin command line utility (in the VC/bin directory) to check which functions are exported by the library. The library must be build for your VS version. Did you build it yourself? Did you get only one or multiple linker errors?

                    U Offline
                    U Offline
                    User 11224092
                    wrote on last edited by
                    #9

                    Getting Linkage errors at Both Json_spirit::Read() and Json_spirit::Write() functions. Just again i build the lib. now i'm getting error like 1>c:\documents and settings\administrator\my documents\downloads\boost_1_46_0\boost\function\function_base.hpp(408) : fatal error C1128: number of sections exceeded object file format limit : compile with /bigobj what to do??

                    J 1 Reply Last reply
                    0
                    • U User 11224092

                      Getting Linkage errors at Both Json_spirit::Read() and Json_spirit::Write() functions. Just again i build the lib. now i'm getting error like 1>c:\documents and settings\administrator\my documents\downloads\boost_1_46_0\boost\function\function_base.hpp(408) : fatal error C1128: number of sections exceeded object file format limit : compile with /bigobj what to do??

                      J Offline
                      J Offline
                      Jochen Arndt
                      wrote on last edited by
                      #10

                      The error message gave you the answer:

                      Member 11258353 wrote:

                      compile with /bigobj

                      You may also search the web for this error message related to boost.

                      U 1 Reply Last reply
                      0
                      • J Jochen Arndt

                        The error message gave you the answer:

                        Member 11258353 wrote:

                        compile with /bigobj

                        You may also search the web for this error message related to boost.

                        U Offline
                        U Offline
                        User 11224092
                        wrote on last edited by
                        #11

                        Thanks Jochen Arndt

                        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