Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-20 Thread Keith Medcalf
age- > From: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] > 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 M

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-20 Thread Keith Medcalf
On Monday, 20 February, 2017 14:25, Cezary H. Noweta 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

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-20 Thread Cezary H. Noweta
Hello, 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

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-20 Thread Keith Medcalf
On Monday, 20 February, 2017 03:58, Cezary H. Noweta said: > On 2017-02-19 22:25, Keith Medcalf wrote: > > Can you tell us how you do it with the amalgamation using MSVS? > ``autoconf'' (containing the same amalgamated ``sqlite3.c'') has the > following options for that

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-20 Thread Cezary H. Noweta
Hello, On 2017-02-19 18:31, Bart Smissaert wrote: gcc -o SQLite3_StdCall.dll -shared sqlite3.c -s -Wl,--subsystem,windows,-- kill-at objdump of SQLite3_StdCall.dll sqlite3_close: 6574f392: 55 push %ebp 6574f393: 89 e5 mov%esp,%ebp

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-20 Thread Cezary H. Noweta
Hello, On 2017-02-19 22:25, Keith Medcalf wrote: Can you tell us how you do it with the amalgamation using MSVS? ``autoconf'' (containing the same amalgamated ``sqlite3.c'') has the following options for that task: -Gz -DSQLITE_CDECL=__cdecl -DSQLITE_APICALL=__stdcall

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-19 Thread Keith Medcalf
abase > Subject: [sqlite] Compile Windows dll with MinGW with stdcall calling > convention? > > This is simple in MSVS, but can't see how this can be done with the MinGW > compiler. > Any idea how this can be done with the sqlite3.c amalgation? > > RBS > __

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-19 Thread Bart Smissaert
I think that something like this should work: gcc -o SQLite3_StdCall.dll -shared sqlite3.c -s -Wl,--subsystem,windows,-- kill-at It does compile, but I for some reason I can't access the .dll from VB6. I had a look at the name mangling and corrected for that, but still no luck. Maybe best to

Re: [sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-19 Thread Cezary H. Noweta
Hello, On 2017-02-18 17:35, Bart Smissaert wrote: This is simple in MSVS, but can't see how this can be done with the MinGW compiler. Any idea how this can be done with the sqlite3.c amalgation? I have just tried ``CFLAGS=-mrtd -DSQLITE_CDECL=__cdecl'' option on different compilers and

[sqlite] Compile Windows dll with MinGW with stdcall calling convention?

2017-02-18 Thread Bart Smissaert
This is simple in MSVS, but can't see how this can be done with the MinGW compiler. Any idea how this can be done with the sqlite3.c amalgation? RBS ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org