Page 1 of 1
					
				Shared libraries on Linux and OS X?  Plug-in architecture...
				Posted: Thu Mar 09, 2006 8:02 pm
				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?
 
			
					
				
				Posted: Thu Mar 09, 2006 8:05 pm
				by Shannara
				I dont know about OSX, but you can create share libraries (.so) in Linux to use for PB/Linux.
			 
			
					
				
				Posted: Thu Mar 09, 2006 8:26 pm
				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?
 
			
					
				
				Posted: Thu Mar 09, 2006 9:52 pm
				by Shannara
				3.94, someone asked a similar question and fred responded with instructions or such on how to do so.
			 
			
					
				
				Posted: Thu Mar 09, 2006 11:44 pm
				by Fred
				May be i'm getting old, but i can't remember such..
			 
			
					
				
				Posted: Thu Mar 09, 2006 11:57 pm
				by Shannara
				Not old, I turn 28 tomorrow 
 
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?
 
			
					
				
				Posted: Fri Mar 10, 2006 12:08 am
				by Fred
				Ha, i understood he wanted to create a .so with PB (like 'create dll' on Windows)
			 
			
					
				.so
				Posted: Fri Mar 10, 2006 12:31 am
				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.
 
			
					
				
				Posted: Fri Mar 10, 2006 6:57 am
				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.
			 
			
					
				
				Posted: Fri Mar 10, 2006 2:26 pm
				by Nik
				It should be made possible though
			 
			
					
				
				Posted: Wed Aug 30, 2006 8:38 am
				by the.weavster
				What about .dylib for Mach-O?