ase can we change the gmp.pas source to:
{$ifdef darwin}
{$linklib gmp.dylib}
{$endif}
That way folks can use the installed unit w/o changes (except to their lib
path).
Thanks!
> On Feb 14, 2025, at 6:48 AM, Michael Van Canneyt via fpc-pascal
> wrote:
>
>
>
> On Tue, 1
What else do I need to add to the compile line to use the gmp unit? I added
gmp to the use line and it throws an error in compilation:
ld: warning: -multiply_defined is obsolete
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate libraries: '-lc'
ld: librar
Was trying to decipher why rtl-generics does not show anywhere in the
documentation, either rtl nor packages. Tried running fpdoc to see if I can get
an idea but, fpdoc throws an error:
--
Error: ./inc/generics.dictionariesh.inc(151,20): Expected ";" or "End" at token
"<" in file ./inc/generics.
On Mon, 3 Feb 2025, ppadilcdx--- via fpc-pascal wrote:
>
>> Is there a reason that the fpc installation does not include the fcl-stl
>> examples and docs in the share/doc directory? I had to download the fpc
>> source to find them (in packages/fcl-stl).
&g
Is there a reason that the fpc installation does not include the fcl-stl
examples and docs in the share/doc directory? I had to download the fpc source
to find them (in packages/fcl-stl).
Regards
Pete
___
fpc-pascal maillist - fpc-pascal@lists.freepa
Thanks!
> On Oct 21, 2024, at 1:35 AM, Michael Van Canneyt via fpc-pascal
> wrote:
>
>
>
> On Sun, 20 Oct 2024, ppadilcdx--- via fpc-pascal wrote:
>
>> Apropos the new users discussion, i think the state of the docs is really
>> important, new us
n(const Item1, Item2: T): Integer;
>
>
> "T" is from the generic, so if you specialized with string, then T is string.
>
> It is a function, not a method (i.e. not part of a class)
>
>
> On 21/10/2024 00:17, ppadilcdx--- via fpc-pascal wrote:
>> Just tried to
Apropos the new users discussion, i think the state of the docs is really
important, new users can be discouraged by lack of documentation or up-to-date
docs.
I just recently retired so not a new young user, but relatily new to fpc. So,
I’m willing to help update the docs, correct typos, etc, i
;const ShortString):LongInt,
so only two non-pointer input parameters. Must be another definition somewhere.
> On Oct 20, 2024, at 2:38 PM, Peter B via fpc-pascal
> wrote:
>
> On 20/10/2024 22:17, ppadilcdx--- via fpc-pascal wrote:
>> I’m a little confused by some refe
I’m a little confused by some references in the docs. Hopefully I can explain
it clearly.
Looking at TFPGList in fgl. The Sort method refers to a TCompareFunc (it does
not link to its definition). TFPGList says it’s methods are the same as
TFPSList or classes.TFPList. So looking in these two ot
An FYI for the compiler team I suppose. I got the following warning:
Free Pascal Compiler version 3.2.2 [2023/09/18] for aarch64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Darwin for AArch64
Compiling test.pp
Assembling test
Linking test
ld: warning: -multiply_defined is obs
Oh I didn't notice the typo, duh. Thanks!!
On 1/24/24 02:57PM, Sven Barth via fpc-pascal wrote:
ppadilcdx via fpc-pascal schrieb am
Mi., 24. Jan. 2024, 22:07:
Thanks for that, now it compiles but it doesn't work, i.e. I added a
pair and value and then used trygetdata an
c-pascal wrote:
El 24/1/24 a les 20:31, ppadilcdx via fpc-pascal ha escrit:
Trying to use the fgl unit, specifically the TFPGMap. Below is a
simple program I'm trying to compile; it gives me two errors:
fgl.pp(1582,18) Error: Operator is not overloaded: "pair" < "pair"
Trying to use the fgl unit, specifically the TFPGMap. Below is a
simple program I'm trying to compile; it gives me two errors:
fgl.pp(1582,18) Error: Operator is not overloaded: "pair" < "pair"
fgl.pp(1584,23) Error: Operator is not overloaded: "pair" > "pair"
program test;
{$mode objfpc}
u
ixels via fpc-pascal wrote:
On Jan 2, 2023, at 6:57 AM, ppadilcdx--- via fpc-pascal
wrote:
program ex;
uses fgl;
var decode: specialize TFPGMap;
begin
decode.create;
decode.add('X', 1);
end.
This doesn’t make sense. It should be
d := specialize TFPGMap.Create;
Right? W
I have a simple example that gives an access violation on the latest
macos (fpc mode, i.e. no mode switch). What am I missing? Thanks in advance:
program ex;
uses fgl;
var d: specialize TFPGMap;
begin
decode.create;
decode.add('X', 1);
end.
An unhandled exception occurred at $000
16 matches
Mail list logo