Hi Goyo,
On Wed, 30 Jul 2014 01:06:01 -0700 (PDT), Goyo wrote:
> Thanks Sandro. I have read about the new mod_spatialite before, but I
> completely forgot it until you reminded me. Now I am almost where I
> want to:
>
> - After downloading and unzipping mod_spatialite-4.2.0-win-x86.7z and
> copying the files to c:windowssystem32 I can load the extension in
> the
> sqlite shell.
>
:-D
> - I can not create an ODBC datasource which loads the extension. I
> write mod_spatialite in the Load extension text box but I get an
> error
> connecting to the datasource: "Extension
> 'C:Windowssystem32mod_spatialite' did not load: No se encontró el
> proceso especificado." (spanish for "Did not find the specified
> process.") I tried the full path and mod_spatialite.dll with the same
> result. Applications (LibreOffice, MS Office...) can connect to the
> datasource but spatialite is not available.
>
please note: this could be possibly related to the version of SQLite3
used by the ODBC connector.
there were several changes affecting "load_extesion" in recent times
(more or less starting since version 3.7.17 2013-05-20)
new versions will always attempt to locate the extension on the most
obvious search paths, and will automatically append the appropriate
platform suffix (.dll or .so or .dylib or whatever else) to the
extension's base-name.
old versions were much more limited, and very often required to specify
an absolute path in order to correctly locate the extension.
that's not all; in new versions the default entry point has a different
name than the one assumed by older versions.
anyway loading any "new style" extension using an obsolete sqlite3
should always be possible, but surely requires a different syntax:
SELECT load_extension(module-name, entry-point-name);
bye Sandro