c++ - Linking with --whole-archive flag -
this problem related this question asked yesterday. seems linker flag --whole-archive forces test
object included in binary. however, in linking with,
g++ main.cpp -o app -wl,--whole-archive -l/home/dumindara/intest/test.a -wl,-no--whole-archive
i following error:
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lgcc_s
what do?
.a
files meant statically linked, , not compiled -fpic
. consequently, cannot make shared library it.
Comments
Post a Comment