Home > Back-end >  A dynamic library calls, please god
A dynamic library calls, please god

Time:03-02

Precondition: executable E, two dynamic library D1, D2, E link D1 and D2, a function of use D1, D2,

Here's the thing:

If you don't link D2 D1, compiled on Linux without any problems, E was completely normal operation,
But on Windows, D1 link failure at compile time, clew cannot find the external symbol, Windows need to link D1 D2 to compile properly,

Is excuse me this platform features? Is there a way to solve?

CodePudding user response:

DLL under Linux and Windows DLLS gm?

CodePudding user response:

Under Windows load DLLS, according to loading, and implicit load two, first loading need not compile time connection DLL lib

CodePudding user response:

refer to the second floor truth is right or wrong response:
Windows load DLLS, shows that load, load and implicit two, first loading need not compile time connection DLL lib

My code is cross-platform, Windows and Linux needs to be compiled, the current must be implicitly load,

CodePudding user response:

Add, must be implicitly load
  • Related