[Shapelib] unresolved external symbol _DBFIsAttributeNULL

Frank Warmerdam warmerdam at pobox.com
Fri Nov 18 14:08:13 EST 2005


On 11/18/05, Juan Carlos Vizueta <juancarlos182 at hotmail.com> wrote:
> Linking...
> dbfdump.obj : error LNK2001: unresolved external symbol _DBFIsAttributeNULL
> Debug/shapelib2.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.

Juan Carlos,

In shapefil.h, what does the declaration for DBFIsAttributeNULL()
look like?  It should be:

int     SHPAPI_CALL
      DBFIsAttributeNULL( DBFHandle hDBF, int iShape, int iField );

In dbfopen.c the implementation should start:

int SHPAPI_CALL
DBFIsAttributeNULL( DBFHandle psDBF, int iRecord, int iField )

{


Is that the way it is declared in your copy of shapelib?

The problem you are running into looks like failure to give
DBFIsAttributeNULL the __declspec(export) attribute (hidden
in the SHPAPI_CALL macro).

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Shapelib mailing list