Import and Import C accept var for path to lib
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Import and Import C accept var for path to lib
It seems utterly daft that Import and Import C only accept a literal path to a lib, given that the lib could be in different places on different machines or OS versions etc.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Import and Import C accept var for path to lib
Variables are unknown at Import time.
You can use #MyLib$ = "somelib.lib" and CompilerIf's.
You can use #MyLib$ = "somelib.lib" and CompilerIf's.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Import and Import C accept var for path to lib
So that is the problem to be solved.Variables are unknown at Import time.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Import and Import C accept var for path to lib
The imported libraries are combined into the final executable when you compile. Variables only have a value once the program is running. That is why only constant expressions are allowed.
It is like asking for variables to be allowed in IncludeFile statements.
It is like asking for variables to be allowed in IncludeFile statements.
quidquid Latine dictum sit altum videtur
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
[FIXED] Re: Import and Import C accept var for path to lib
That makes sense 

IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.