[fpc-pascal] Compile errors

Michael Van Canneyt michael at freepascal.org
Tue Jan 21 16:15:33 CET 2025



On Tue, 21 Jan 2025, Frank McCormick via fpc-pascal wrote:

>
>
> On 2025-01-21 09:00, Michael Van Canneyt via fpc-pascal wrote:
>> 
>> 
>> 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'
> /snip/
>> 
>> 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.
>
> I added it at the top of the source but
> same problem(s). I also found out I cannot compile ANY of the example 
> programs provided.
> They all show linking errors similar to what I get with screen_demo.
>
> I have ncurses (5 and 6) install along with the dev files.
> This is on OpenSuse Tumbleweed.
>
> I am baffled at this point as I was planning on using ocrt and/or ncrt 
> in some of the programs I am developing using crt at the moment.

Strange. I know someone who uses ocrt on OpenSuse since years. 
Maybe he is still on an older version of OpenSuse.

I now tested 10 of the provided demos and on my linux mint they all start
without problem.

Michael.


More information about the fpc-pascal mailing list