When compiling a test program statically linking a shared module on fc10
i386 I get the following messages:
testlibyfbudfunit.pas:60: undefined reference to `Y_Odd'
./libyfbudf.so: undefined reference to `fpc_geteipasebx'
testlibyfbudf.lpr(20,1) Error: Error while linking
testlibyfbudf.lpr(20,1) Fatal: There were 1 errors compiling module,
stopping
What does this mean?
The function in the shared module:
function Y_Odd(const AValue: Int64): LongInt; cdecl; export;
begin
if Odd(AValue) then
Result := -1
else
Result := 0;
end;
The declaration in the test program:
function Y_Odd(const AValue: Int64): LongInt; cdecl; external 'yfbudf';
libyfbudf.so is located in /usr/lib
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal