[fpc-pascal] linking to dll still fails
Marc Santhoff
M.Santhoff at t-online.de
Sun Jun 8 13:27:08 CEST 2008
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:
> >
> > 00008000:Searching file D:\FPC\2.2.0\BIN\I386-WIN32\libhdf5.dll.a... not found
> > 00008000:Searching file hdf5.dll... found
> > 00008000:unit H5_ATTRIBUTE can't be shared linked, switching to static linking
> ^^^^^^^^^^^
> You should remove any -XS -XD -CX options you can find, they are causing this.
I'd say this has nothing to do with the problem then, I got those
message after trying to compile without the help of fpcmake and make.
fpc -Fu.. -Fl.. -Fl. -Fu..\units\i386-win32 -Fo.. -Xc -Xe -XD -k'-lhdf5'
-vv h5_attribute
Btw., testing used both, internal and external linker.
> > 00008000:Searching file .\libimpsysinitpas.a... not found
> > 00008000:Searching file D:\FPC\fpcbuild-2.2.0\fpcsrc\packages\extra\hdf5\units\i386-win32\libimpsysinitpas.a... not found
> > 00008000:Searching file D:\FPC\2.2.0\units\i386-win32\rtl\libimpsysinitpas.a... found
> > 00001000:Linking h5_attribute.exe
> > 00008000:Searching file libhdf5.a... not found
> >
> > Is there any documentation on this topic?
> > Or maybe some hints how the reason that stops dynamic linking can be
> > found?
> >
> > I'm amazed that this is an issue, I would never expect problems on such
> > matters ...
>
> Neither would I... Can you send me the sources if the problem persists after
> getting rid of all 'wrong' options ?
If anything else fails, yes, I can. But that may take a little while to
do some cleaning up from my testbed.
Marc
More information about the fpc-pascal
mailing list