GCC -rdynamic not working with static libraries
问题 Why is -rdynamic not exporting the symbols in .a files but is exporting the symbols in .o files ? I have an app and a plug-in in a .so file. The main app is linked using a series of object files and one static library, like this: CXXFLAGS = $(CXXFLAGS_COMMON) -rdynamic STATICLIBS = ../Utilities/Utilities.a ... all: $(CXX) $(CXXFLAGS) -o $(SAMPLE) main.o $(STATICLIBS) $(SHAREDLIBS) $(INCLUDES) (CXX is g++ 4.5.2 on Ubunut, I use mainly -std=c++Ox for compilation) In this case, the symbols in