Hello, thanks for answering I compile and link in this way $ (MY_LIB_NIM): * .nim Makefile nim c -d: release --passC: -fPIC --noMain --opt: speed --app: staticlib --outdir: $ (NIM_OUTDIR) --nimcache: $ (NIM_CACHEDIR) --out: $ (basename $ < ) .a --header: $ (basename $ <). h $ < % .o:% .c Makefile gcc -std = c11 -fPIC -O2 -D_GNU_SOURCE -c $ <-I $ (PG_SERVER_INC) -I $ (NIM_INCLUDE_BASE) -I $ (NIM_INCLUDE_LOCAL) $ (MY_LIB_GCC): $ (MY_OBJS) gcc -shared -fPIC -O2 $ ^ $ (MY_LIB_NIM) -o $ @ Run
I will test with the parameters you indicate