Issue with GMP static linkage (and bundle)
danieleghisi at gmail.com
Sat Sep 30 13:10:57 UTC 2017
I can't avoid "Bundle", that's the type I need for the library I'm compiling.
I eventually solved it by adding the
flag. (That is however weird...)
Thanks for your answer!
2017-09-30 14:51 GMT+02:00 Torbjörn Granlund <tg at gmplib.org>:
> Daniele Ghisi <danieleghisi at gmail.com> writes:
> I need to link GMP statically to a project (written in C).
> Which version of GMP?
> I can't seem to do it if the Mach-O Type of my target is set to "Bundle".
> WHat does "type of target" mean in this context?
> No issues when it is set to "executable" or "static library".
> Weird things those apples. Why don't you avoid "Bundle" if that doesn't
> No issues when I use dynamic linkage either (with -lgmp)
> Perhaps something to consider, then?
> I am on OS X 10.10.5, Xcode 7.2
> I have tried to install GMP manually or with homebrew, in both cases I
> still get the issue.
> Are you saying that your original problem is with somebody else's
> compile? Then perhaps talk to them? The GMP team cannot unravel issues
> with package compiles later causing user problems.
> If you compile GMP yourself (which is what I assume you mean by "install
> GMP manually") then the problems persists, IIUC. Are you sure you link
> to your own compiled version, then? And again, which GMP version did
> you compile?
> Please encrypt, key id 0xC8601622
More information about the gmp-discuss