Do not force a fully static link (do not use the -static
flag) - this is done on any modern UNIX system, this is a very bad idea (TM).
Instead, only link libduma statically. Any of these commands should work:
g++ ./testDuma.cpp -g -pthread -o testDuma /path/to/libduma.a g++ ./testDuma.cpp -g -pthread -o testDuma -Wl,-Bstatic -lduma -Wl,-Bdynamic
Employed Russian
source share