Page 1 of 1

Dynamic ".lib" and ".dll" files apart from source

Posted: Sat Dec 29, 2018 2:11 pm
by LiK137
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?

Re: Dynamic ".lib" and ".dll" files apart from source

Posted: Sat Dec 29, 2018 4:21 pm
by Bisonte
LiK137 wrote:... Is there any option to set current directory in the source before importing functions?...
As one word ;)

Re: Dynamic ".lib" and ".dll" files apart from source

Posted: Sat Dec 29, 2018 8:25 pm
by LiK137
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"