Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2000-09

Dynamic Libraries

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Konstantin Muenning

Hello!

I am searching for the possibility to use dynamic libraries with FPC but ones wich are NOT linked at startup but under the explicite control (and request) of the executing program. I am searching for FPC equivalents of the functions in Borlands WinProcs unit:

LoadLibrary
FreeLibrary
RegisterProc

I know how I can make/use these with Windows but I don't know if it is present or even possible with Linux. Has anyone some experience (with C and Linux is would be also OK for me) or is it maybe already present in a current FPC version?

The reason I need this is to make a software wich has a library consisting of procedures and functions, wich can be like
plug-ins.

Have a nice day,
Konstantin Münning ,,,
-------------------------------/'^'\------------------------------------ www.muenning.com ( o o )
--------------------------oOOO--(_)--OOOo------------------------------- When all other means of communication fail, try words. (-O-)
Beware of Programmers who carry screwdrivers.
-- Leonard Brandwein
(-O-)
A mathematician is a machine for converting coffee into theorems.

Reply by email

Unknown author
to Konstantin Muenning
I am searching for the possibility to use dynamic libraries with FPC but ones wich are NOT linked at startup but under the explicite control (and request) of the executing program. I am searching for FPC

.
.

for me) or is it maybe already present in a current FPC version?

Yes, it is. Source for v1.1 contain a new unit dynlibs, which does exactly this (should be supported on OS/2, Linux and Win32 currently).

Have a nice day

Tomas Hajny

Reply by email

Javier Ros
to Konstantin Muenning: Hello! I am searching for the possibility to use dynamic libraries with FPC but ones wich…
Konstantin Muenning wrote 21 lines
Hello! I am searching for the possibility to use dynamic libraries with FPC but ones wich are NOT linked at startup but under the explicite control (and request) of the executing program. I am searching for FPC equivalents of the functions in Borlands WinProcs unit: LoadLibrary FreeLibrary RegisterProc I know how I can make/use these with Windows but I don't know if it is present or even possible with Linux. Has anyone some experience (with C and Linux is would be also OK for me) or is it maybe already present in a current FPC version? The reason I need this is to make a software wich has a library consisting of procedures and functions, wich can be like plug-ins.

Not sure but I think glib offers such functionality and it works both in linux and windows. You can find Glib within GTK libraries.

Javier Ros Ganuza. Dpto. Ingeniería Mecánica. Univ. Pública de Navarra. Campus de Arrosadia s/n. 31006 Pamplona. Tel. 34 948169307 Fax. 34 948169099

Reply by email