Linkage Problem in MSVC 2008 (wxWidget 3.0 Application)
-
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..
-
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.
"json_spirit.h" i have included this file for reading json file.
-
"json_spirit.h" i have included this file for reading json file.
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).
-
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).
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.
-
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.
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.
-
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.
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,,
-
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,,
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?
-
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?
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??
-
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??
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.
-
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.
Thanks Jochen Arndt