I program a lot on linux and I use the visibility attribute to determine if a character is visible or hidden in a shared object. Just to make things clearer: if the symbol is visible, it will be accessible from the outside (someone is connected to a shared object), if it is hidden, it should only be used internally.
In windows, this works a little differently, it works with export (the symbol is defined here in the shared object and will be accessible by someone related to it) and import (here I am connecting with the shared object and the symbol is exported there). But I could not find a way to tell the compiler not to export the character, because it should be used only here, that is, if someone contacts him, a linker error is expected.
My question is, can I define the character as "hidden" (as in linux gcc) and how. Also, all this visibility in the Windows theme is a bit fuzzy for me, and I was looking for some additional reading links to better understand how everything works.
c ++ windows visual-c ++ mingw
Andrรฉ puel
source share