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

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -