So I\'ve been coding something on 32-bit and yesterday I needed to build a dll and I had a couple of problems with that. Anyway I solved them here.
Unfortunately eve
The solution was to compile everything with -fPIC, and link shared objects with -shared.
-fPIC
-shared
Add -fPIC to CFLAGS or CXXFLAGS for make-based projects.
CFLAGS
CXXFLAGS