The linker may not find your function, because it is compiled with various settings. Like the release of vs debug, unicode vs non-unicode, differences in calling conventions. This can lead to the fact that the name will be distorted in different ways. If the .h file is written in c rather than C ++, you may need to completely disable name management by wrapping prototypes in
extern "C"
{
}
user180326
source
share