[Shapelib] Dialog based application in UNICODE and VC++ (VS2010)
Sjur Kolberg
Sjur.A.Kolberg at sintef.no
Wed Apr 18 08:02:28 EST 2012
The unresolved external error is a linker error, meaning that it is the .lib file that cannot be found. Your #includes are well recognised (since you didn't get compilation errors) but those only look for .h files.
You need to ensure that Visual Studio can find Shapelib.lib, or whatever it's called.
If you use the IDE, go to Project properties, Linker, Input, Additional dependencies, and add the necessary lib file name. Also, under Linker, General, Additional Library Directories, add the folder where the lib file resides.
Also, if Shapelib is a dynamic library, you need to ensure that Shapelib.dll (or similar) resides together with you executable.
Good luck,
Sjur K :-)
From: shapelib-bounces at lists.maptools.org [mailto:shapelib-bounces at lists.maptools.org] On Behalf Of Juan Antonio Pastor
Sent: 18. april 2012 12:05
To: Shapelib at lists.maptools.org
Subject: [Shapelib] Dialog based application in UNICODE and VC++ (VS2010)
Hi.
I'm working in a dialog based vc++ application (VS2010). I set unicode option in the compiler settings. I added aes.h, shapefil.h and shpopen.cpp in the project.When the application is compiled we get errors like these:
error LNK2019: unresolved external symbol _DBFClose referenced in function "public: void __thiscall CClass::Function(void)"
error LNK2019: unresolved external symbol _DBFOpen referenced in function "public: void __thiscall CClass::Function(void)"
In CClass.cpp I added:
#include "aes.h"
#include "shapefil.h"
I don't know how configure the project to use shapelib API.
Any information is apreciated.
Best regards, Toño.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/shapelib/attachments/20120418/0ac7acf0/attachment.htm
More information about the Shapelib
mailing list