[fpc-pascal] Compile errors
Michael Van Canneyt
michael at freepascal.org
Tue Jan 21 15:00:18 CET 2025
On Mon, 20 Jan 2025, Frank McCormick via fpc-pascal wrote:
> I have been trying out a CRT replacement called NCRT and OCRT and
> am getting link errors which I can't track down. Originally I was getting
> compile errors but I sorted that out.
> Are these units still workable with Free Pascal ?
> These are the link errors I am getting:
>
> Free Pascal Compiler version 3.2.2 [2025/01/10] for x86_64
> Copyright (c) 1993-2021 by Florian Klaempfl and others
> Target OS: Linux for x86-64
> Compiling screen_demo.pp
> Linking screen_demo
> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o: in
> function `NCURSES_$$_ACS_ULCORNER$$QWORD':
> ncurses.pp:(.text.n_ncurses_$$_acs_ulcorner$$qword+0x3): undefined reference
> to `acs_map'
> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o: in
> function `NCURSES_$$_ACS_LLCORNER$$QWORD':
> ncurses.pp:(.text.n_ncurses_$$_acs_llcorner$$qword+0x3): undefined reference
> to `acs_map'
> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o: in
> function `NCURSES_$$_ACS_URCORNER$$QWORD':
> ncurses.pp:(.text.n_ncurses_$$_acs_urcorner$$qword+0x3): undefined reference
> to `acs_map'
> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o: in
> function `NCURSES_$$_ACS_LRCORNER$$QWORD':
> ncurses.pp:(.text.n_ncurses_$$_acs_lrcorner$$qword+0x3): undefined reference
> to `acs_map'
> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o: in
> function `NCURSES_$$_ACS_LTEE$$QWORD':
> ncurses.pp:(.text.n_ncurses_$$_acs_ltee$$qword+0x3): undefined reference to
> `acs_map'
> /usr/bin/ld:
> /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o:ncurses.pp:(.text.n_ncurses_$$_acs_rtee$$qword+0x3):
> more undefined references to `acs_map' follow
> /usr/bin/ld: /usr/lib64/fpc/3.2.2/units/x86_64-linux/ncurses/ncurses.o: in
> function `NCURSES_$$_COLOR_SET$SMALLINT$POINTER$$LONGINT':
> ncurses.pp:(.text.n_ncurses_$$_color_set$smallint$pointer$$longint+0xe):
> undefined reference to `stdscr'
> /usr/bin/ld:
Your answer may be here:
https://unix.stackexchange.com/questions/30526/undefined-reference-to-symbol-acs-map-when-running-makeconfig
So try to add
{$linklib tinfo}
to your program source.
Michael.
More information about the fpc-pascal
mailing list