To see on what libraries depends your binary you can call ldd as a post-compile command (or add it as an External Tool).
As for how to see where they are specified ... no idea, other than grepping the sources for the names given by ldd
Not much help, is it? Sorry. 
Thanks, but this did not help. When I use ldd, I do not get all libraries:-(. When I start my program and use lsof, I do not get them either. The reason can be that my mysql is only connected when I need it.
If I run lsof when sql is connected, I see more libraries in lsof than those I see when the program is idle. I specifically get the following entries:
mem REG 8,2 47632 9176675 /lib/x86_64-linux-gnu/libnss_files-2.24.so
mem REG 8,2 92584 9175044 /lib/x86_64-linux-gnu/libgcc_s.so.1
mem REG 8,2 4179432 10631843 /usr/lib/x86_64-linux-gnu/libmariadbclient.so.18.0.0
mem REG 8,2 1566168 10622268 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
These four do not appear in ldd, or lsof when idle. The problem is that libmariadbclient.so is not thread safe, and I would need to change it to libmariadbclient_r.so what apparently is.
"grep" to find the reference can also be tricky, especially if it is referenced in a binary.
I have a concrete problem with MySQL library linking (I asked it in the relevant group)
I do not quite understand your question. Want to know which libraries use your access components? Or do you want to know where to look for these libraries? What exactly?
Thanks, but none of the two. I can find what libraries are used (see above), and I can also find them on the disk (lsof gives that too). What I do not find, which unit specifies it, and how I could change it.