-1
  1. Can we use the same function in 2 different library files, if they included in a common DLL file.
  2. Can I define the function in 1 lib file & use that function from another lib file. in this case, if one common DLL only used a library file that does not have a function definition, will that be a problem ? or is fine if the DLL included both the lib file?
simplePerson43
  • 3,787
  • 1
  • 15
  • 10

1 Answers1

0
  1. A function may be used in two or more different source files, as long as the object files that result from compiling them are linked with an object file that defines the function, whether in a DLL or otherwise.

  2. A function can be defined in one source file and used in another source file that are both compiled into object files and linked into the same DLL.

Eric Postpischil
  • 195,579
  • 13
  • 168
  • 312