Re: Compile errors

Frank McCormick via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>

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.

Thanks
Frank McCormick

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.