I\'m trying to compile a minimal shared library and link to it and have been failing for two hours now. Here is ALL the code:
// rect.h class Rect{ private:
The libraries have to go after the local translation units:
g++ -L. -Wl,-rpath,'.' client.cpp -o client -lrect # ^^^^^^
It has to do with how unresolved symbols are looked up by the linker; search the internet for a plethora of information on this if you're curious.