pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

linking error #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to build createkml.cc file which i have copied from libkml
examples. I have given all the header files needed which come with libkml.
Now i am getting some linking errors. can you please tell me how can i
solve them? 
  I am using VS2005 express edition. 
here are some errors.

1>creatkml.obj : error LNK2028: unresolved token (0A0007AB) "void __cdecl
kmlbase::intrusive_ptr_add_ref(class kmlbase::Referent *)"
(?intrusive_ptr_add_ref@kmlbase@@$$FYAXPAVReferent@1@@Z) referenced in
function "public: __thiscall boost::intrusive_ptr<class
kmldom::Snippet>::intrusive_ptr<class kmldom::Snippet>(class
boost::intrusive_ptr<class kmldom::Snippet> const &)"
(??0?$intrusive_ptr@VSnippet@kmldom@@@boost@@$$FQAE@ABV01@@Z)

1>creatkml.obj : error LNK2028: unresolved token (0A0007D3) "class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl kmldom::SerializePretty(class
boost::intrusive_ptr<class kmldom::Element> const &)"
(?SerializePretty@kmldom@@$$FYA?AV?$basic_string@DU?$char_traits@D@std@@V?$alloc
ator@D@2@@std@@ABV?$intrusive_ptr@VElement@kmldom@@@boost@@@Z)
referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)

1>creatkml.obj : error LNK2028: unresolved token (0A0007D4) "public: class
kmldom::Kml * __thiscall kmldom::KmlFactory::CreateKml(void)const "
(?CreateKml@KmlFactory@kmldom@@$$FQBEPAVKml@2@XZ) referenced in function
"int __cdecl main(void)" (?main@@$$HYAHXZ)

Original issue reported on code.google.com by saee.bho...@gmail.com on 26 Nov 2008 at 5:18

GoogleCodeExporter commented 9 years ago
Try checking out the current top of trunk (r366) and building the 
createkml.vcproj in
the new msvc/examples directory.

Note you first have to build the libkml.sln libraries first.

Original comment by kml.mash...@gmail.com on 26 Nov 2008 at 5:27

GoogleCodeExporter commented 9 years ago
built libkml.sln libraries. included path in in c/c++ directories. still the 
errors.

createkml.obj : error LNK2028: unresolved token (0A000816) "void __cdecl
kmlbase::intrusive_ptr_add_ref(class kmlbase::Referent *)"
(?intrusive_ptr_add_ref@kmlbase@@$$FYAXPAVReferent@1@@Z) referenced in function
"public: __thiscall boost::intrusive_ptr<class 
kmldom::Snippet>::intrusive_ptr<class
kmldom::Snippet>(class boost::intrusive_ptr<class kmldom::Snippet> const &)"
(??0?$intrusive_ptr@VSnippet@kmldom@@@boost@@$$FQAE@ABV01@@Z)
1>createkml.obj : error LNK2028: unresolved token (0A000817) "void __cdecl
kmlbase::intrusive_ptr_release(class kmlbase::Referent *)"
(?intrusive_ptr_release@kmlbase@@$$FYAXPAVReferent@1@@Z) referenced in function
"public: __thiscall boost::intrusive_ptr<class 
kmldom::Element>::~intrusive_ptr<class
kmldom::Element>(void)" (??1?$intrusive_ptr@VElement@kmldom@@@boost@@$$FQAE@XZ)

Original comment by saee.bho...@gmail.com on 27 Nov 2008 at 6:48

GoogleCodeExporter commented 9 years ago
There's no need to "copy from examples" and if you do you'll
likely orphan the example from its dependencies.

Original comment by kml.b...@gmail.com on 20 May 2009 at 11:14