Ok, found it by hacking the tcl scripts.  The amalgamation code now has the 
appropriate macros but when compiled -m64 it works fine but does nothing, when 
compiled -m32 it spits a cascade of errors.  Same thing using either the 
__attribute__ or __stdcall ...

> -----Original Message-----
> From: sqlite-users [mailto:[email protected]]
> On Behalf Of Keith Medcalf
> Sent: Monday, 20 February, 2017 14:52
> To: SQLite mailing list
> Subject: Re: [sqlite] Compile Windows dll with MinGW with stdcall calling
> convention?
> 
> 
> On Monday, 20 February, 2017 14:25, Cezary H. Noweta <[email protected]>
> wrote:
> 
> > On 2017-02-20 20:07, Keith Medcalf wrote:
> 
> > > Yes, and I see the defines for those in the sqlite3.c file, but they
> are
> > not used anywhere ...
> 
> > > That is, I would have expected to see:
> 
> > > SQLITE_API void SQLITE_APICALL sqlite3_.....()
> 
> > > in all the function definitions.  But I don't.  Is there some
> "special"
> > building of the amalgamation required for these macro's to appear in the
> > function definitions?
> 
> > Yes. They are used while building the amalgamation (``sqlite3.c'',
> > ``sqlite3.h'', ``sqlite3ext.h'') from sources (``-+useapicall'' tcl
> > script option, ``USE_STDCALL'' nmake macro). You can build the
> > amalgamation in such a way that those macros will appear.
> 
> Ok, but I do not see how to do that.  Visual Studio does not run on Linux,
> nor does NMAKE and I do not see anything in the regular Makefile which
> would enable this option (nor anything in configure).
> 
> Is it not possible to generate an amalgamation in which these macros
> appear from a fossil pull onto a Linux machine?
> 
> 
> 
> 
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users



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

Reply via email to