[Shapelib] where can i find instructions on how to use the programs

Frank Warmerdam warmerdam at pobox.com
Wed Jun 2 10:03:50 EST 2010


Steve Kwan wrote:
> Hi Frank
> yes I tried running shpcreate.c but couldnt get it to work. I loaded 
> shpcreate.c and shpfil.h into MS visual studio 2008 but the project 
> wouldnt compile.
> I got the errors:
> 
> 1>------ Build started: Project: shpcreate, Configuration: Debug Win32 
> ------
> 1>Linking...
> 1>shpcreate.obj : error LNK2019: unresolved external symbol _SHPClose 
> referenced in function _main
> 1>shpcreate.obj : error LNK2019: unresolved external symbol _SHPCreate 
> referenced in function _main
> 1>C:\Users\Asus\Documents\Visual Studio 
> 2008\Projects\shpcreate\Debug\shpcreate.exe : fatal error LNK1120: 2 
> unresolved externals
> 1>Build log was saved at "file://c:\Users\Asus\Documents\Visual Studio 
> 2008\Projects\shpcreate\shpcreate\Debug\BuildLog.htm"
> 1>shpcreate - 3 error(s), 0 warning(s)

Steve,

You should also include shpopen.c in your project.  I would also encourage
you to include dbfopen.c and shptree.c even if you don't use them immediately.

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