Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3679

Accessing GMP dylib

$
0
0

Hi all,
I’ve installed GMP on my Mac via Homebrew. A little test using the Terminal results successfuly.
Then, I tried to code a sample test in Xojo, using Declare, with a System.IsFuntionAvailable before calling the dylib. Unfortunately, it’s always false.
The dylib is in this folder : /usr/local/Cellar/gmp/6.3.0/lib/libgmp.dylib and accessible via /usr/local/opt/gmp/lib/libgmp.10.dylib, in addition.
How should I declare the function ? For example:

Declare Sub mpz_init Lib “/usr/local/opt/gmp/lib/libgmp.10.dylib” (z As Ptr)

Or something else ?

TIA for any advice, information or code sample.

Jean-Luc

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3679

Trending Articles