[fpc-pascal]ques about libraries

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Jul 20 09:50:34 CEST 2001

On Fri, 20 Jul 2001, Gabriel Guzmics wrote:

> I now played around with free pascal. my friends mean i am an idiot still believing open source will make it to something one day.
> I think, right, maybe nearly every open source project on the net is in development, but linux shows us, that open source HAS power, and not just one big company can rule the software base.
> well what is really important about freepascal is, that it has so many compiling targets and options.
> well but whats about the libraries?
> my question is, if anybody could list libraries running under win32 and linux x, with following abstract codes (so the source code of the prog hasnt to be modified, only maybe the uses list, to port it to another system)
> * a thread lib (VERY important, abstract thread lib)

Use glib; it has a threads module.

> * a graphics lib, gfx lib with opt. hardware acc. (i think this is easiest -> opengl)

GTK and OpenGL would be best ATM.

> * an abstraction to sockets working on both platforms. maybe on more.

The standard sockets unit is cross-platform.

> * abstract input routines like keyboard and mouse

GTK would take care of that.

> * dosumentation or short help files

LateX is recommended; For source documentation there is pasdoc or fpdoc;

> i am browsing the PAS files i have, maybe somebody can tell me faster.
> with abstract i mean that system dependent functions are bound to an
> individual API. e.g. i can put a pixel in each system with "PutPixel".

GTK does that.

> most important for me is threading and socks, mostly TCP/IP,
> i personally dont use any other network protocol (since its standard)

The problem with threading is that the RTL is _not_ yet thread safe,
although that is being worked on. This problem can be solved by not
using some standard functions.


More information about the fpc-pascal mailing list