Re: [fpc-pascal] linking to dll still fails

2008-06-08 Thread Marc Santhoff
Am Sonntag, den 08.06.2008, 12:52 +0200 schrieb Michael Van Canneyt: > > On Sun, 8 Jun 2008, Marc Santhoff wrote: > > > Hi again, > > > > I have more questions on linking. What can prevent dynamic linking from > > being possible? Like in the following snippet from fpcdebug.txt: > > > > 8000

Re: [fpc-pascal] linking to dll still fails

2008-06-08 Thread Marc Santhoff
Am Sonntag, den 08.06.2008, 12:35 +0200 schrieb Marc Santhoff: > > > Another part is to adapt the declaration of variables. Currently they > > > are defined like this: > > > > > > H5T_NATIVE_SCHAR_g : hid_t;cvar;external; > > > > > > and as you can see in the fpcdebug.txt the name mangling is wro

Re: [fpc-pascal] linking to dll still fails

2008-06-08 Thread Michael Van Canneyt
On Sun, 8 Jun 2008, Marc Santhoff wrote: > Hi again, > > I have more questions on linking. What can prevent dynamic linking from > being possible? Like in the following snippet from fpcdebug.txt: > > 8000:Searching file D:\FPC\2.2.0\BIN\I386-WIN32\libhdf5.dll.a... not found > 8000:Sear

Re: [fpc-pascal] linking to dll still fails

2008-06-08 Thread Marc Santhoff
Am Sonntag, den 08.06.2008, 11:34 +0200 schrieb Michael Van Canneyt: > > On Sat, 7 Jun 2008, Marc Santhoff wrote: > > > Am Samstag, den 07.06.2008, 10:24 +0200 schrieb Michael Van Canneyt: > > > > > > On Sat, 7 Jun 2008, Marc Santhoff wrote: > > > > > > > Hi, > > > > > > > > I still have no su

Re: [fpc-pascal] linking to dll still fails

2008-06-08 Thread Marc Santhoff
Hi again, I have more questions on linking. What can prevent dynamic linking from being possible? Like in the following snippet from fpcdebug.txt: 8000:Searching file D:\FPC\2.2.0\BIN\I386-WIN32\libhdf5.dll.a... not found 8000:Searching file hdf5.dll... found 8000:unit H5_ATTRIBUTE ca

Re: [fpc-pascal] linking to dll still fails

2008-06-08 Thread Michael Van Canneyt
On Sat, 7 Jun 2008, Marc Santhoff wrote: > Am Samstag, den 07.06.2008, 10:24 +0200 schrieb Michael Van Canneyt: > > > > On Sat, 7 Jun 2008, Marc Santhoff wrote: > > > > > Hi, > > > > > > I still have no success in linking against a dll on windows. > > > > > > The dll import source looks like

Re: [fpc-pascal] linking to dll still fails

2008-06-07 Thread Marc Santhoff
Am Samstag, den 07.06.2008, 10:24 +0200 schrieb Michael Van Canneyt: > > On Sat, 7 Jun 2008, Marc Santhoff wrote: > > > Hi, > > > > I still have no success in linking against a dll on windows. > > > > The dll import source looks like this: > > > > ... > > {$linklib 'hdf5'} > > You should chan

Re: [fpc-pascal] linking to dll still fails

2008-06-07 Thread Michael Van Canneyt
On Sat, 7 Jun 2008, Marc Santhoff wrote: > Hi, > > I still have no success in linking against a dll on windows. > > The dll import source looks like this: > > ... > {$linklib 'hdf5'} You should change this to {$linklib hdf5.dll} for windows. Otherwise the compiler will try to link to a stat

[fpc-pascal] linking to dll still fails

2008-06-06 Thread Marc Santhoff
Hi, I still have no success in linking against a dll on windows. The dll import source looks like this: ... {$linklib 'hdf5'} ... function H5open:herr_t;{$ifdef BSD}cdecl{$endif}{$ifdef Win32}stdcall{$endif};external; function H5close:herr_t;{$ifdef BSD}cdecl{$endif}{$ifdef Win32}stdcall{$endi