[Implemented] Linux Create Libraries

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

[Implemented] Linux Create Libraries

Post by Num3 »

I would like to see the Linux compiler create libraries (.so)

That would make cross platform code much easier to create and sustain ;)
The_CodeMaster
User
User
Posts: 41
Joined: Wed Dec 29, 2004 11:39 am
Location: Belgium

Post by The_CodeMaster »

So you can't create your one user-libs in linux 8O ? That realy sucks, or am I missing something...
The_CodeMaster
User
User
Posts: 41
Joined: Wed Dec 29, 2004 11:39 am
Location: Belgium

Post by The_CodeMaster »

Never worked with Linux though, and I'm not planning to do so either the first cupple of years, until that Longhorn-crap starts to show itself on the market :evil: .
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post by olejr »

Yes you can create your own userlibraries, as in purelibraries.
But not .so (SharedObject) libs, as in .dll(DynamicLoadLib)..

And while I'm at it..Yes it would be great if we could get PB to create .so libs..
How hard can it be?? :wink:
In C you just go:
gcc -fPIC -c somefile.c <- generates the objectfile
gcc -shared somelib.so somefile.o

And the "great" thing is that the objectfile you get out of this, you can use in a standard program as well.. Or a link lib.. or...
OK so maybe that's a bit simplified but...
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Yea I second that request (or is it third)
Post Reply