Hi,
Source imports functions from ".lib" file which linked to ".dll"
if in compiler options "Current Directory" defined to path where library files located then program is compiled and run OK.
But what if source is using different libraries from different locations. Is there any option to set current directory in the source before importing functions?
Dynamic ".lib" and ".dll" files apart from source
Re: Dynamic ".lib" and ".dll" files apart from source
As one wordLiK137 wrote:... Is there any option to set current directory in the source before importing functions?...
Re: Dynamic ".lib" and ".dll" files apart from source
Bisonte,
thank You for reply.
You misunderstood me, as one word changes path for executable but I am talking about source, precompile directory.
Assume source file located in "/Project1/Source/Source1.pb" folder and libraries are "/Project1/Libs/Lib1.lib" and "/Project1/Libs/Lib1.dll"
Then:
import "../Libs/Lib1.lib" - throws "Lib1.dll" not found
I of course will use dll and prototype if no way with ".lib"
thank You for reply.
You misunderstood me, as one word changes path for executable but I am talking about source, precompile directory.
Assume source file located in "/Project1/Source/Source1.pb" folder and libraries are "/Project1/Libs/Lib1.lib" and "/Project1/Libs/Lib1.dll"
Then:
import "../Libs/Lib1.lib" - throws "Lib1.dll" not found
I of course will use dll and prototype if no way with ".lib"