confused newbie question (Windows).
I can import functions from a system libs or other lib, if present on the system.
Now - I do have a full C++ source of a massive library but want to use only certain classes (dll is 16MB, used functions are juts few classes, if I include sources and make an app in a C++ app - it results in a 50KB executable with no dependencies). I cannot split easily the useful and not useful code by hand - 60K lines referencing lots of common functions is hard to digest and clean up.
Is there a way to use .lib or obj files produced by C++ (VS in this case) with Purebasic so, that the linker takes what is needed and no DLL is needed?
Using C backend? Or something more straight forward?
Assume I have this in the lib, declared it correctly and it is all I need:
Code: Select all
Import "mylib.lib" ; or ImportC depending on what is correct for 32/64 particular lib.
Dosomething.l (num1.l, num2.l, num3.l, num4.l) As "_Anything@16FunctionX"
EndImport

