Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3506
| From | d3x0r <d3ck0r@gmail.com> |
|---|---|
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: sqlite3 compile failed |
| Date | 2017-11-20 02:37 -0800 |
| Organization | OpenWatcom |
| Message-ID | <op.y9zzssxbp1j1yy@panther-pc> (permalink) |
| References | <op.y4xa3uteu543ij@pvu4xv05toqifrh.setup> |
On Sun, 13 Aug 2017 12:00:55 -0700, norimaki <67edbb3078678ddc726c50ee95b338f6@e.2chmail.net> wrote: > I compiled sqlite 3 with watcom 1.9 but failed. > I can not do the setup to make DLL well. > I saw "create DLL" of watcom - wiki, "linker" of help, past question etc > of newgroup, but eventually errer did not disappear and I could not > understand. > Will not you show me the settings that succeeded in compiling version > 3.20 of sqlite 3? > (I would appreciate it if you can give me a set of successful project > files if possible.) > The OS is Windows XP. > > This sentence is translated using a machine translation system. I see you asked this a few months ago... but here's some info... There is a code generation but that will cause it to fail without code patches to the sqlite3.c file see all changes with FIX_DLL_REF https://sourceforge.net/p/sack/code/ci/6252a3905d5fe0c57754d9c7e411812638a8dfbc/ When a function reference is imported into a structure initilaized with the function address, the address is actually a double indirect pointer instead of just being the address of the function, it's the address of the address of the function. You will also have to add SQLITE_EXTERN to funstions you wawnt to export for the DLL. #ifndef SQLITE_EXTERN -# define SQLITE_EXTERN extern +# define SQLITE_EXTERN __declspec(dllexport) #endif I've also taken to just linking the sqlite statically so I don't have to keep doing the changes to export/import the symbols I need. I suppose making a .def file or something would have been an easier solution. Unfortunatly I can't provide just the build for sqlite itself, I use it within a much larger project. -- Using Opera's mail client: http://www.opera.com/mail/
Back to openwatcom.users.c_cpp | Previous | Next — Previous in thread | Find similar
sqlite3 compile failed norimaki <67edbb3078678ddc726c50ee95b338f6@e.2chmail.net> - 2017-08-14 04:00 +0900
Re: sqlite3 compile failed Frank Beythien <fbeythien@gmx.de> - 2017-08-14 10:16 +0200
Re: sqlite3 compile failed norimaki <67edbb3078678ddc726c50ee95b338f6@e.2chmail.net> - 2017-08-14 23:22 +0900
Re: sqlite3 compile failed Frank Beythien <fbeythien@gmx.de> - 2017-08-15 14:57 +0200
Re: sqlite3 compile failed norimaki <67edbb3078678ddc726c50ee95b338f6@e.2chmail.net> - 2017-08-16 22:19 +0900
Re: sqlite3 compile failed d3x0r <d3ck0r@gmail.com> - 2017-11-20 02:37 -0800
csiph-web