Shared libraries on Linux and OS X? Plug-in architecture...

Everything else that doesn't fall into one of the other PB categories.
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Shared libraries on Linux and OS X? Plug-in architecture...

Post by USCode »

:?: I think I've read on this forum that it's not possible to create shared libraries on Linux or OS X like we can with Windows (DLLs), correct?

If so, is that something on the horizon for future versions of PB for Linux and/or OS X? Maybe for PB4?

I'd like to create an application with a functionality "plug-in" type architecture and shared libraries seem to be the only way to go to achieve this with PB?
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I dont know about OSX, but you can create share libraries (.so) in Linux to use for PB/Linux.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Shannara wrote:I dont know about OSX, but you can create share libraries (.so) in Linux to use for PB/Linux.
In which PB-version for Linux?
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
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

3.94, someone asked a similar question and fred responded with instructions or such on how to do so.
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

May be i'm getting old, but i can't remember such..
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Not old, I turn 28 tomorrow :D

I think I agree though .. ?

References:

http://www.purebasic.fr/english/viewtop ... ht=library
http://www.purebasic.fr/english/viewtop ... highlight=

On the forum, there are some posts concerning using 3rd party libraries in PB, so it must be possible ... fmod, scentilla, midas (?), etc comes to mind. So if they can do it .. ... :) Or do you mean userlibraries?
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Ha, i understood he wanted to create a .so with PB (like 'create dll' on Windows)
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

.so

Post by USCode »

Fred wrote:Ha, i understood he wanted to create a .so with PB (like 'create dll' on Windows)
That's correct, I want to create a .so shared object on Linux (and OS X I guess), just like I can create a DLL on Windows.

Unless someone has another way to create plug-ins for an application.
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

That's not possible, but you can do a Userlib with it. BTW.: *.so won't work, because if you want to link it with the Linux Linker of PureBasic you have to turn every asm command IIRC.
bye,
Daniel
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

It should be made possible though
User avatar
the.weavster
Addict
Addict
Posts: 1581
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Post by the.weavster »

What about .dylib for Mach-O?
Post Reply