<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Perhaps I missed it, but are you sure you declared the
functions/procedure in the library you are using cdecl? That would
explain a runtime error instead of linker error.<br>
<br>
Jeff.<br>
<br>
Guillermo Martínez Jiménez wrote:
<blockquote
cite="mid:a2a0fbc20902121142v125f8400ofe6c804320172e40@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap="">Link time error, I guess. But according to your original message, the name
of the library is liballeg_unshareable.a. So you would have to use -k
liballeg_unshareable.a, not "-klalleg_unshareable.a". The linker only
prepends "lib" if you use "-k-lalleg_unshareable.a" (note the extra "-").
And if you use it with {$l } in the source, you also need the full exact
name: {$l liballeg_unshareable.a} (because you are linking like a regular
object file in that case, not as a library).
</pre>
</blockquote>
<pre wrap=""><!---->
I've used this command line:
fpc test.pp -Fu../lib/ -k/usr/local/lib/liballeg_unsharable.a
Not link time error but run time error. Tried also {$l
liballeg_unsharable.a} at sources and the same: not link time error
but run time error.
Now I'm trying using dynlibs unit.
_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
<br>
--<br>
I haven't smoked for 2 years, 5 months and 3 weeks, saving $4,098.13
and not smoking 27,320.90 cigarettes.
</body>
</html>