#1 2023-04-09 10:30:15

AOG
Member
Registered: 2014-02-24
Posts: 490

Using mORMot without static libs

Hello Ab,
Due to the de-coupling of features in mORMot2, it can be used for more than only database [ORM] stuff.
On- and offline, I am advising people to consider using mORMot2 for their tasks.
However, the use of static libs and the linking of these libs is something that always leads to errors about missing libs.
I know, RTFM, but anyhow.
To give an example.
The chat-client and -server examples (on Windows) need libkernel32 and libdeflatepas.
Would it be possible to have a soft-version of the mORMot2 that does not need these libs and compiles and runs out-of-the-box.
(e.g. from a simple Github clone)
Thanks for taking the time.

Offline

#2 2023-04-09 13:58:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,237
Website

Re: Using mORMot without static libs

With FPC it is very easy: just use the Lazarus package, and you will have everything at the good place.
Direct linking of the mORMot source units is not a good idea.

The main problem is that I don't see any way of late-binding of static libraries.
For dynamic libraries (dll/so) we can use runtime resolution.
But for static libraries, it just fails at compile time if the .o is not available.

Offline

Board footer

Powered by FluxBB