Implementing stub function and linking it to a definition in a library during run time

  clang, shared-libraries, visual-c++, windows

When I was reading about using shared libraries, I learnt how the definitions of standard C functions, like printf, are resolved during run-time.
I want to implement functions in my project in the similar manner. I can have stub definition of functions for compiling and linking phase. And actual definition of the functions will be present in a library on my target device where I’ll run my executable.
I am looking for a way to implement it on windows target machine i.e. by using MSVC build tools and clang compiler.

Source: Windows Questions

LEAVE A COMMENT