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 static library. > ... > function H5open:herr_t;{$ifdef BSD}cdecl{$endif}{$ifdef > Win32}stdcall{$endif};external; > function H5close:herr_t;{$ifdef BSD}cdecl{$endif}{$ifdef > Win32}stdcall{$endif};external; It would be better to have function H5close:herr_t;{$ifndef windows}cdecl{$else}stdcall{$endif};external; This way it will also work on Linux, and Mac OS X. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal