That would make cross platform code much easier to create and sustain
[Implemented] Linux Create Libraries
-
Num3
- PureBasic Expert

- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
[Implemented] Linux Create Libraries
I would like to see the Linux compiler create libraries (.so)
That would make cross platform code much easier to create and sustain
That would make cross platform code much easier to create and sustain
-
The_CodeMaster
- User

- Posts: 41
- Joined: Wed Dec 29, 2004 11:39 am
- Location: Belgium
-
The_CodeMaster
- User

- Posts: 41
- Joined: Wed Dec 29, 2004 11:39 am
- Location: Belgium
-
olejr
- Enthusiast

- Posts: 152
- Joined: Sun Jul 11, 2004 7:48 pm
- Location: Lillehammer, No(r)way
- Contact:
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??
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...
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??
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

- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact: