Sign in Join

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

Mailing lists / fpc-devel / 2002-01

dll

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Alejandro Néstor Vargas

I know under windows I can use dlls with fpc. And I know under linux I can link C libraries... But... Is it possible to use a dll under linux?

Alejandro Néstor Vargas Departamento de Desarrollo X Net Cuyo S.A.

Reply by email

Peter Vreman
you wrote
I know under windows I can use dlls with fpc. And I know under linux I can link C libraries... But... Is it possible to use a dll under linux?

shared libraries are the dlls under linux

Peter

Reply by email

Alejandro Néstor Vargas
to Peter Vreman

Peter Vreman dijo:

Show quoted text 5 lines
At 21:32 7-1-02, you wrote: >I know under windows I can use dlls with fpc. And I know under linux I >can link C libraries... But... Is it possible to use a dll under linux? shared libraries are the dlls under linux

Yes, I know, but what I wanted to do is to use a windows dll in a linux binary. I know it can be done in C using wine libraries (in ex. mplayer that uses windows codecs). FreePascal is a stand alone compiler, then, I think it may be possible to add to it the functionality of loading windows dlls (if it is not yet implemented). Because it actually do it under windows, it may be possible to do it under linux too... or not?

Alejandro Néstor Vargas Departamento de Desarrollo X Net Cuyo S.A.

Reply by email

Peter Vreman
Show quoted text 11 lines
Peter Vreman dijo: > At 21:32 7-1-02, you wrote: >>I know under windows I can use dlls with fpc. And I know under linux I >>can link C libraries... But... Is it possible to use a dll under linux? > > shared libraries are the dlls under linux Yes, I know, but what I wanted to do is to use a windows dll in a linux binary. I know it can be done in C using wine libraries (in ex. mplayer that uses windows codecs). FreePascal is a stand alone compiler, then, I think it may be possible to add to it the functionality of loading

window> s

dlls (if it is not yet implemented). Because it actually do it under windows, it may be possible to do it under linux too... or not?

FPC does not load the dlls itself. It is windows that takes care of it. But it should imho be possible to link with wine and use the dll using wine routines. But how this need to be done is unknown for me.

Reply by email