I have compiled a library A with g++ 7.5 that references in a implementation file (.cpp) a class of another library B. But the referenced library B is not added as a dependency to library A.
app -> libA.so -> libB.so
When I run this library A with msvc & Windows, I get no error at application runtime. When run with gcc & linux, there is a undefined symbol error at application runtime.
Why is that? Why is the application running fine under windows, but not under linux? It compiles and links fine under both OS.