gmp

ppadilcdx--- via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
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: library 'gmp.3' not found
—

First two lines are always there. Last two occur when I add gmp to the use line. Seems to be looking for libgmp.3.dylib (or libgmp.3.a?).  Is unfortunate that it includes a version number, since the gmplib installed with homebrew provides:

/opt/homebrew/lib/libgmp.10.dylib
/opt/homebrew/lib/libgmp.a
/opt/homebrew/lib/libgmp.dylib

Is there a workaround or is the gmp unit unusable with newer versions of gmplib?

Appreciate any advice. 

Regards
Pete

_______________________________________________
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.