1

The problem when compiling (by the readme.md guide):

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a(gtest-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

How do you actually compile with -fPIC? I tried the following:

export CXXFLAGS="$CXXFLAGS -fPIC"
export CXXFLAGS='-O -fPIC'

Browse other questions tagged or ask your own question.