shared library will not get involved into compiling process, it is only referred during linking process.
I wonder how you could successfully compile your codes with reference to the type/function inside the shared library without including library's header file? Compiler doesn't care the implementation of these types/functions, but it does care about the declaration of them...