azzeddine1265 / libkml

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

Libkml bad intrusive pointers when using set_name and set_description #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I downloaded libkml 5 (this problem was with 4 too) and built the
libraries in VS 2005. 
2. Next, I put those libraries under my project and included the
appropriate header files.
3. It has a problem locating boost code at this point so I make
boost_1_34_1 an additional include directory and the project builds
successfully. 
4. Any use of set_name/set_description error out based on a bad ptr.
5. Linking errors occur when trying release mode (not in debug mode)
anytime I try to create an intrusive pointer like KmlFactory* factory =
KmlFactory::GetFactory();

What version of the product are you using? On what operating system?
Newest version of Libkml (5) on XP with VS 2005

Please provide any additional information below.

Original issue reported on code.google.com by rjohnson...@gmail.com on 5 Nov 2008 at 5:22

GoogleCodeExporter commented 9 years ago
can you run the supplied examples successfully?

at least post a large enough snippet of your failing code to allow me to 
reproduce
the problem.

Original comment by kml.mash...@gmail.com on 5 Nov 2008 at 7:14

GoogleCodeExporter commented 9 years ago
Right now I pretty much have all the code commented out except this being run 
by a
main method:

KmlFactory* factory = KmlFactory::GetFactory();

Relevant header file usage of libkml:
#include "kml\dom.h"
#include "KMLType.h"
using kmldom::KmlFactory;

Sorry, I left that stuff out because I'm pretty sure it's my fault with how I 
have my
project built not a  real lib kml issue. It compiles in debugging mode fine but
errors out as I said before. I just found out that in release mode it gets this 
error:

Error   308 error LNK2019: unresolved external symbol "public: static class
kmldom::KmlFactory * __cdecl kmldom::KmlFactory::GetFactory(void)"
(?GetFactory@KmlFactory@kmldom@@SAPAV12@XZ) referenced in function "public: bool
__thiscall KMLGenerator::generateKML(int)" (?generateKML@KMLGenerator@@QAE_NH@Z)
KMLGenerator.obj    

Seems like I'm having an issue with boost? I had this same issue with the 
examples
which is why I didn't post it as an issue with lib kml but in the discussion 
forum
asking if I screwed something up. 

Thanks for the help!
-Russ

Original comment by rjohnson...@gmail.com on 5 Nov 2008 at 7:22

GoogleCodeExporter commented 9 years ago
Doesn't seem to be a libkml bug here.  The very small parts of
boost used in libkml is within libkml and is referenced from
the vcproj files.

If this is still a problem reopen and add more details about
the platform.  Looks like windows.  What version of windows?
What version of visual studio?  etc

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