Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Installation
»
Linux
»
again problems with link
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[Solved] Stacked bars not...
by
wp
[
Today
at 10:57:01 am]
Olympic Rings (Interleave...
by
Zvoni
[
Today
at 10:37:21 am]
How to low level manage S...
by
creaothceann
[
Today
at 10:30:26 am]
CudaText editor (written ...
by
AlexTP
[
Today
at 09:51:32 am]
Theoretical question. Laz...
by
Petrus Vorster
[
Today
at 09:49:47 am]
Printout in Printer Queue...
by
wwerner
[
Today
at 07:25:31 am]
The compiler fails to war...
by
dseligo
[
Today
at 01:41:21 am]
Embedded qss stylesheets ...
by
big_M
[
Today
at 12:52:34 am]
Mapping Images Like Odome...
by
SandyG
[January 15, 2026, 11:57:50 pm]
StrToDateTime problems
by
Aruna
[January 15, 2026, 11:56:02 pm]
Newly revised TlistBox in...
by
jamie
[January 15, 2026, 11:17:12 pm]
unit init, finalize and i...
by
PascalDragon
[January 15, 2026, 09:46:49 pm]
Why does FPC behave this ...
by
PascalDragon
[January 15, 2026, 09:26:24 pm]
How to forward a Class in...
by
PascalDragon
[January 15, 2026, 09:21:47 pm]
Pyramid solitaire, re-wri...
by
TBMan
[January 15, 2026, 09:21:07 pm]
Tzipper giving error on M...
by
Josh
[January 15, 2026, 08:46:02 pm]
Copy and Past Code
by
n7800
[January 15, 2026, 07:47:43 pm]
AI: Agentic Design Patter...
by
avra
[January 15, 2026, 06:36:29 pm]
PasLLM - LLM Inference En...
by
matthius
[January 15, 2026, 01:41:45 pm]
New book on Object Pascal
by
matthius
[January 15, 2026, 12:55:36 pm]
[SOLVED] Assembler error ...
by
dbannon
[January 15, 2026, 12:55:16 pm]
four squares (inc)
by
speter
[January 15, 2026, 11:25:05 am]
Regarding the issue of de...
by
Martin_fr
[January 15, 2026, 10:20:35 am]
Dice (raylib + kraft phys...
by
fcu
[January 15, 2026, 09:01:24 am]
Lazarus seems to be makin...
by
Boleeman
[January 15, 2026, 07:54:25 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: again problems with link (Read 6868 times)
angman
Jr. Member
Posts: 58
again problems with link
«
on:
October 24, 2006, 11:57:52 am »
Hi, I have an fpc console program that use a static library, I translated the .h c header in a .pas unit file and added in the uses of my main program.
the .pas header file is i the same directiry of tha main and there are also the .ppu and .o files. when I try to buid the project I get the link error /usr/bin/ld: cannot find -ldscud
How can happen this?
Thanks, angman
:roll:
Logged
Marc
Administrator
Hero Member
Posts: 2671
RE: again problems with link
«
Reply #1 on:
October 24, 2006, 12:47:03 pm »
have you solething like /usr/lib/libdscud.so ?
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
angman
Jr. Member
Posts: 58
again problems with link
«
Reply #2 on:
October 24, 2006, 12:51:03 pm »
No I have a dscud.o in same directory of the main program.
The dscud.pas is a pascal header file for dscud6.lib, that I translated from the c .h, and is compiled within the same buid project of the main program.
angman
Logged
Marc
Administrator
Hero Member
Posts: 2671
again problems with link
«
Reply #3 on:
October 24, 2006, 12:53:47 pm »
make sure your LD path (or how is it called) is pointing to the current dir also. For security reasons . is normally not included in the library search path.
Try compileing with -sh. This will skip the link step, but will generate ppas.sh and a link.res. In the link.res you can see where libraries are searched etc.
Logged
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
angman
Jr. Member
Posts: 58
again problems with link
«
Reply #4 on:
October 24, 2006, 02:38:10 pm »
I compiled with -sh option, and this is the context of li.res file:
SEARCH_DIR(/lib/)
SEARCH_DIR(/usr/lib/)
SEARCH_DIR(/usr/X11R6/lib/)
SEARCH_DIR(./lib/gcc3/dscud5/)
SEARCH_DIR(/usr/lib/gcc-lib/i486-linux/3.3.5/)
SEARCH_DIR(./)
SEARCH_DIR(/usr/share/lazarus/units/i386-linux/indy/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/rtl/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/libasync/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/paszlib/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/pasjpeg/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/syslog/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/sqlite/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/oracle/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/opengl/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/libpng/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/gdbint/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/ncurses/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/svgalib/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/postgres/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/lexyacc/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/unzip/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/mysql/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/netdb/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/libgd/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/imlib/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/ibase/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/graph/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/gnome/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/fpgtk/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/forms/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/gconf/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/unixutil/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/cdrom/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/regexpr/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/zlib/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/uuid/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/utmp/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/odbc/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/newt/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/libc/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/gtk2/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/hash/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/gdbm/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/fftw/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/pthreads/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/zvt/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/tcl/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/x11/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/gtk/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/ggi/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/fcl/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/bfd/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/fv/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/units/i386-linux/)
SEARCH_DIR(/usr/lib/fpc/2.0.4/)
INPUT(
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/prt0.o
Prconslaz.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/system.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/lineinfo.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/strings.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/objpas.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/classes.o
dscud.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/sysutils.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/types.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/typinfo.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/rtlconsts.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/unix.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/errors.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/sysconst.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/unixtype.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/baseunix.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/unixutil.o
/usr/lib/fpc/2.0.4/units/i386-linux/rtl/syscall.o
)
INPUT(
-ldscud5
-lgcc
-lstdc++
-lrt
-ldscud
)
There is the SEARCH_DIR(./) in searchPath, so wath happen here?
angman
Logged
angman
Jr. Member
Posts: 58
again problems with link
«
Reply #5 on:
October 25, 2006, 12:23:59 pm »
Is very strange, I tried the same in a windows version, and compile and link without any problem.
angman
Logged
angman
Jr. Member
Posts: 58
again problems with link
«
Reply #6 on:
October 25, 2006, 05:56:55 pm »
I found it. Sorry, was a my error, a wrong name in the external of one only function of the header translation, and only in linux version.
However, I thanks very much all that helped me.
Thanks, angman
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Installation
»
Linux
»
again problems with link
TinyPortal
© 2005-2018