Project

General

Profile

Actions

Misc #19758

open

Statically link ext/json

Added by MyCo (Maik Menz) 10 months ago. Updated about 1 month ago.


Description

Hi,

I'm building Ruby both as dynamic and static library with MSVC for a project. Everything appears to work fine, but now I'm trying to use the json ext, and it only works with the dynamically linked version.
In the statically linked version it says it's missing json/pure but on closer inspection the reason it says that is because it can't find json/ext/parser (and probably also json/ext/generator) in the first place.

I can see that both parser & generator created static libs in the build directory but they aren't linked into the ruby lib.
With my limited knowledge of the building processes, my first attempt was to add both of those libs into LOCAL_LIBS and now they apear in the linking process.
But this still doesn't change anything. It's still not finding those 2 libs in the statically linked Ruby build.

What am I missing? What do I have to do, to get those linked into the static lib?

Regards
Maik

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0