Link2019 when call other module(Plugin)'s global function

For example,in module A ,aa.h declared a global function “void DoSomething()”, aa.cpp defined “void DoSomething()”.other code in the A module calls DoSomething will not be a problem, but the B module calls DoSomething will appear Link2019 error


To be honest, I don’t know why not.But I know what to do, you can implement the function directly in the.h file, if there are still errors, you can use a class or struct that contains the function, use static function,is work.