[Shapelib] Shapelib Digest, Vol 77, Issue 2

Juan Antonio Pastor juanpastjim at gmail.com
Wed Apr 18 10:03:52 PDT 2012


Hi all.

I find the error....

I not attach dbfopen.cpp into the project.... ;)

Thanks a lot!!



El 18 de abril de 2012 14:00, <shapelib-request at lists.maptools.org>escribió:

> Send Shapelib mailing list submissions to
>        shapelib at lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.maptools.org/mailman/listinfo/shapelib
> or, via email, send a message with subject or body 'help' to
>        shapelib-request at lists.maptools.org
>
> You can reach the person managing the list at
>        shapelib-owner at lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Shapelib digest..."
>
>
> Today's Topics:
>
>   1. Dialog based application in UNICODE and VC++ (VS2010)
>      (Juan Antonio Pastor)
>   2. Re: Dialog based application in UNICODE and VC++ (VS2010)
>      (Sjur Kolberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 18 Apr 2012 12:04:46 +0200
> From: Juan Antonio Pastor <juanpastjim at gmail.com>
> Subject: [Shapelib] Dialog based application in UNICODE and VC++
>        (VS2010)
> To: Shapelib at lists.maptools.org
> Message-ID:
>        <CAEam2R4jgLDeG7xv0Na-ZYsN+ijzE6TLD=A53Za84yDSYY-8Cg at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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/daa4948f/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 18 Apr 2012 15:02:28 +0200
> From: Sjur Kolberg <Sjur.A.Kolberg at sintef.no>
> Subject: Re: [Shapelib] Dialog based application in UNICODE and VC++
>        (VS2010)
> To: Shapelib Development <shapelib at lists.maptools.org>
> Message-ID:
>        <72251B925CE10A478606EEAC6AA683BE59F99F55FD at SINTEFEXMBX01.sintef.no
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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-0001.htm
>
> ------------------------------
>
> _______________________________________________
> Shapelib mailing list
> Shapelib at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/shapelib
>
>
> End of Shapelib Digest, Vol 77, Issue 2
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/shapelib/attachments/20120418/a057a65a/attachment.html>


More information about the Shapelib mailing list