<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:#000000;"><div>Hi List,</div><div><br></div><div>I am developing a custom SQLite/Spatialite driver for a GIS application. Now when I am compiling my source code I am getting a some linking errors.</div><div><br></div><div>The source code has the following files as its header files </div><div>sqlite3.h</div><div>geos_c.h</div><div>gaiageo.h</div><div>spatialite.c</div><div>wx/string.h</div><div>iconv.h</div><div>proj_api.h</div><div><br></div><div>In terms of compiling it is almost the same as building <spatialite.c>. But once I compile it on VS2008 on Windows Vista 32-bit processor, I am getting errors as:</div><div><br></div><div><div>1. error LNK2019: unresolved external symbol _locale_charset referenced in function _gaiaGetLocaleCharset<span class="Apple-tab-span"
style="white-space:pre">        </span>spatialite.obj<span class="Apple-tab-span" style="white-space:pre">        </span>compile</div></div><div>2. error LNK2019: unresolved external symbol _libiconv_close referenced in function _gaiaConvertCharset<span class="Apple-tab-span" style="white-space:pre">        </span>spatialite.obj<span class="Apple-tab-span" style="white-space:pre">        </span>compile</div><div>3. error LNK2019: unresolved external symbol _GEOSGeom_destroy referenced in function _gaiaGeomCollEquals<span class="Apple-tab-span" style="white-space:pre">        </span>spatialite.obj<span class="Apple-tab-span" style="white-space:pre">        </span>compile</div><div><div>4. error LNK2019: unresolved external symbol _GEOSversion referenced in function _spatialite_init<span class="Apple-tab-span" style="white-space:pre">        </span>spatialite.obj<span class="Apple-tab-span" style="white-space:pre">        </span>compile</div></div><div>5. error LNK2019: unresolved external
symbol _WinMain@16 referenced in function ___tmainCRTStartup<span class="Apple-tab-span" style="white-space:pre">        </span>MSVCRTD.lib<span class="Apple-tab-span" style="white-space:pre">        </span>compile</div><div><br></div><div><br></div><div>I am getting almost the similar erros when I try to compile <spatialite.c></div><div><br></div><div>Am I missing some possible step while compiling the source code? Have I overlooked some of the dependencies? </div><div>Should I keep <iconv.h> file in my project or a dependency for libicon?. </div><div>Also, should I keep the file <proj_api.h> in my project or a dependency on libproj?</div><div><br></div><div>I would be very grateful if you can help me with the above problem.</div><div><br></div><div>Thanks,</div><div><br></div><div>--</div><div>Sharad Singh</div><div>India</div><div><br></div><div><br></div><div><br></div><div style="position:fixed"></div>
</div><br></body></html>