Quantcast

Bug causing MSVC to fail to compile Session Extension from the amalgamation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bug causing MSVC to fail to compile Session Extension from the amalgamation

Zachary Greve
When using MSVC to compile the SQLite library, several errors pop up about differing linkage definitions of several session extension functions. These functions are declared without the SQLITE_API macro, but are implemented with it. MSVC does not like this and fails the compilation.


I have tested with both MSVC 2015 and 2017, both have the same result.


The affected methods are:


sqlite3changegroup_new

sqlite3changegroup_add

sqlite3changegroup_output

sqlite3changegroup_add_strm

sqlite3changegroup_output_strm

sqlite3changegroup_delete


I manually added the SQLITE_API macro to the beginning of these functions where they are declared in the header area to fix this.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bug causing MSVC to fail to compile Session Extension from the amalgamation

Joe Mistachkin-3

Zachary Greve wrote:
>
> When using MSVC to compile the SQLite library, several errors pop up
> about differing linkage definitions of several session extension
> functions. These functions are declared without the SQLITE_API macro,
> but are implemented with it. MSVC does not like this and fails the
> compilation.
>

Thanks for the report.  This should now be fixed on trunk.

--
Joe Mistachkin @ https://urn.to/r/mistachkin

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Loading...