简体   繁体   中英

Can we use same function in 2 different library file , if both the library consumed in same DLL file

  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?
  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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM