silpol / pyspatialite

Automatically exported from code.google.com/p/pyspatialite
zlib License
0 stars 0 forks source link

previous declaration of ‘spatialite_init’ was here #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I try to compile the latest release I get

...
src/connection.h:36:5: error: conflicting types for ‘spatialite_init’
/usr/include/spatialite.h:92:29: note: previous declaration of 
‘spatialite_init’ was here
...

That's because connection.h defines spatialite_init, but it's already imported 
from spatialite.h

Removing the declaration in connection.h works for me

Original issue reported on code.google.com by ziade.ta...@gmail.com on 30 May 2013 at 10:48

GoogleCodeExporter commented 8 years ago
Is this with the latest release of spatialite (4.x), or the 3.x series?
What OS are you compiling on?
What version of Python?

Original comment by lok...@gmail.com on 30 May 2013 at 2:29

GoogleCodeExporter commented 8 years ago
I have an error r when installing pyspatialite with pip on OSX. 
libspatialite 4.1.1 built with Homebrew. 
The error is the same:

In file included from src/module.c:24:
src/connection.h:36:5: error: conflicting types for 'spatialite_init'
int spatialite_init(int verbose);
    ^
/usr/local/include/spatialite.h:102:29: note: previous declaration is here
    SPATIALITE_DECLARE void spatialite_init (int verbose);

Pip log attached. When trying to install with easy-install - same error. 

Original comment by nextstop...@gmail.com on 25 Jul 2013 at 9:06

Attachments:

GoogleCodeExporter commented 8 years ago
changed to use correct type for 3.0.1.  Will be committed to github soon.

Original comment by lok...@gmail.com on 21 Nov 2013 at 10:30