[fpc-pascal]problems linking to libborqt
geeken
geeken at pandora.be
Mon Jan 26 21:46:43 CET 2004
Hi,
I am trying to use freeclx/qt with fpc.
So I must be able to link to libborqt.
It works with dcc (kylix compiler), but not with fpc.
Here is small link test program
program test;
procedure InitializePAnsiString(CCPS, COPS, IPS, FPS: Pointer); cdecl;
external 'libborqt-6.9-qt2.3.so' name 'initPAnsiStrings';
begin
writeln('Hello');
InitializePAnsiString(nil,nil,nil,nil);
end.
Output with fpc:
------------------
Free Pascal Compiler version 1.9.2 [2004/01/06] for i386
Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling test.pas
Linking test
/usr/bin/ld: cannot find -lborqt-6.9-qt2.3
test.pas(8,1) Error: Error while linking
Closing script ppas.sh
Output with dcc:
-------------------
Borland Delphi for Linux Version 14.5
Copyright (c) 1983,2002 Borland Software Corporation
test.pas(9)
10 lines, 0.01 seconds, 21816 bytes code, 3088 bytes data.
Hello
libborqt-6.9.0-qt2.3.so => /usr/kylix3/bin/libborqt-6.9.0-qt2.3.so
(0x40015000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40754000)
libdl.so.2 => /lib/libdl.so.2 (0x407a5000)
libc.so.6 => /lib/i686/libc.so.6 (0x407a8000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x408d8000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x408e7000)
libm.so.6 => /lib/i686/libm.so.6 (0x409ca000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x409ed000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x409f7000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40a0e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
compiling was done with following script:
----------------------------------------------
#!/bin/bash
source /usr/kylix3/bin/kylixpath /usr/kylix3 >/dev/null
#fpc test.pas
dcc test.pas
./test
ldd test
Has anyone succesfully compiled and linked Qt.pas/Bindhelp.pas ?
kind regards,
Den Jean
More information about the fpc-pascal
mailing list