[fpc-pascal] libc error on older Linux
Tomas Hajny
XHajT03 at hajny.biz
Wed Jun 3 16:42:08 CEST 2026
On 2026-06-03 15:57, Rainer Stratmann via fpc-pascal wrote:
>> What kind of application is that - is it a Lazarus (GUI) application,
>> or
>> you just use Lazarus as your IDE? Is it a multi-threaded application?
>>
>> Tomas
>
> A very simple
>
> writeln( 'hello' );
>
> works!
>
> I have to search what causes the error in my (huge) software.
>
>
> https://forum.lazarus.freepascal.org/index.php?topic=38069.0
>
> Comment: August 26, 2017, 07:18:24 pm
>
> Library libc usage and unit libc usage are totally different subjects.
> Unit
> libc is deprecated for a long time (since it is basically an one off
> header for
> a 15+ old libc), library libc not.
>
> May be this is the issue.
I assume that you don't use this deprecated unit libc, do you? However,
AFAIK, Lazarus adds a couple of units like cwstrings, cthreads, etc., to
applications automatically, and these imply use of libc.so even without
using unit libc. Unit cwstrings may be relevant for working with
UnicodeStrings - does your application use UnicodeStrings / WideStrings?
If not, you might be able to remove that dependency. If you use them,
you might still try using unit fpwidestring instead.
Tomas
More information about the fpc-pascal
mailing list