<div>Hi Frank </div><div>Thanks for the advice. I included all those files but I'm still getting errors:</div><div><br></div><div><div>1>------ Build started: Project: shpcreate, Configuration: Debug Win32 ------</div>
<div>1>Linking...</div><div>1>shpopen.obj : error LNK2019: unresolved external symbol _SASetupDefaultHooks referenced in function _SHPOpen</div><div>1>dbfopen.obj : error LNK2001: unresolved external symbol _SASetupDefaultHooks</div>
<div>1>C:\Users\Asus\Documents\Visual Studio 2008\Projects\shpcreate\Debug\shpcreate.exe : fatal error LNK1120: 1 unresolved externals</div><div>1>Build log was saved at "file://c:\Users\Asus\Documents\Visual Studio 2008\Projects\shpcreate\shpcreate\Debug\BuildLog.htm"</div>
<div>1>shpcreate - 3 error(s), 0 warning(s)</div><div>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div><div><br></div><div><br></div><div>Steve</div></div><div><br></div><br><br><div class="gmail_quote">
On Wed, Jun 2, 2010 at 8:03 AM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Steve Kwan wrote:<br>
> Hi Frank<br>
> yes I tried running shpcreate.c but couldnt get it to work. I loaded<br>
> shpcreate.c and shpfil.h into MS visual studio 2008 but the project<br>
> wouldnt compile.<br>
> I got the errors:<br>
><br>
> 1>------ Build started: Project: shpcreate, Configuration: Debug Win32<br>
> ------<br>
> 1>Linking...<br>
> 1>shpcreate.obj : error LNK2019: unresolved external symbol _SHPClose<br>
> referenced in function _main<br>
> 1>shpcreate.obj : error LNK2019: unresolved external symbol _SHPCreate<br>
> referenced in function _main<br>
> 1>C:\Users\Asus\Documents\Visual Studio<br>
> 2008\Projects\shpcreate\Debug\shpcreate.exe : fatal error LNK1120: 2<br>
> unresolved externals<br>
> 1>Build log was saved at "file://c:\Users\Asus\Documents\Visual Studio<br>
> 2008\Projects\shpcreate\shpcreate\Debug\BuildLog.htm"<br>
> 1>shpcreate - 3 error(s), 0 warning(s)<br>
<br>
</div>Steve,<br>
<br>
You should also include shpopen.c in your project. I would also encourage<br>
you to include dbfopen.c and shptree.c even if you don't use them immediately.<br>
<div><div></div><div class="h5"><br>
Best regards,<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent<br>
<br>
_______________________________________________<br>
Shapelib mailing list<br>
<a href="mailto:Shapelib@lists.maptools.org">Shapelib@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/shapelib" target="_blank">http://lists.maptools.org/mailman/listinfo/shapelib</a><br>
</div></div></blockquote></div><br>