Including library in .exe

Just starting out? Need help? Post your questions and find answers here.
soerenkj
User
User
Posts: 95
Joined: Mon Jun 14, 2004 10:19 pm

Including library in .exe

Post by soerenkj »

Dear all,
I am trying to figure out if it is possible to include a third party library into an .exe I am builing?
I have tried downloading a library (Csound) which is distributed as a .dll file, and I managed to generate a .lib file from that .dll file. So now I can import/link the .lib statically with 'ImportC'. However, the .exe which is generated seems to be dependent still on the original .dll file (if I delete the original .dll file the application will not start).
Best regards,
Søren
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Including library in .exe

Post by ts-soft »

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
soerenkj
User
User
Posts: 95
Joined: Mon Jun 14, 2004 10:19 pm

Re: Including library in .exe

Post by soerenkj »

Thanks, look interesting! Does it also work with .dylib files (OSX)?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Including library in .exe

Post by ts-soft »

No, works only with dll (windows).
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply