Quantcast

Re: Shapelib Digest, Vol 77, Issue 2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Shapelib Digest, Vol 77, Issue 2

Juan Antonio Pastor
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, <[hidden email]> escribió:
Send Shapelib mailing list submissions to
       [hidden email]

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
       [hidden email]

You can reach the person managing the list at
       [hidden email]

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 <[hidden email]>
Subject: [Shapelib] Dialog based application in UNICODE and VC++
       (VS2010)
To: [hidden email]
Message-ID:
       <CAEam2R4jgLDeG7xv0Na-ZYsN+ijzE6TLD=[hidden email]>
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 <[hidden email]>
Subject: Re: [Shapelib] Dialog based application in UNICODE and VC++
       (VS2010)
To: Shapelib Development <[hidden email]>
Message-ID:
       <[hidden email]>
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: [hidden email] [mailto:[hidden email]] On Behalf Of Juan Antonio Pastor
Sent: 18. april 2012 12:05
To: [hidden email]
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
[hidden email]
http://lists.maptools.org/mailman/listinfo/shapelib


End of Shapelib Digest, Vol 77, Issue 2
***************************************


_______________________________________________
Shapelib mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/shapelib
Loading...