I am trying to compile a .so for a fairly large project, and I am running into the issue that none of the classes, templated or otherwise, written in any of the files are in the completed .so file.
I made the file with:
g++ -shared -fPIC -Wall filename1.cpp -o libfilename1.so
I'll spare you the full output of the nm, but all of the non-templated functions that were defined are there, and none of the templated functions, templated classes, or classes are there. I tried using __attribute__ ((visibility=("default")))
in the class declarations, but it didn't seem to do anything.