Statically linking in a library to a framework?
Statically linking in a library to a framework?
- Subject: Statically linking in a library to a framework?
- From: Lally Singh <email@hidden>
- Date: Tue, 15 Jan 2002 05:41:20 -0500
Hi all. I've written an RSA authentication module for unlocking my
soon-to-be-released shareware, and it uses the GNU GMP library for it's
big-integer stuff. I want to use it as a private framework. However,
I'm having problems getting the little bugger to link properly. I can't
expect everyone to have gotten fink & installed libgmp, so I've been
trying to statically link it with my framework. Well, all I end up with
is just the libgmp modules in my library, as shown by otool -T, and I
can't use the framework anywhere. In desperation, I tried linking to it
dynamically, getting an error about a common symbol can't be in a DYLIB.
Anyone have any suggestions for me? Is my best hope to just add all the
gmp sources to my project directly & compile from there? Sounds like
I'd have to release the whole library under LGPL then, but IANAL. If
that was necessary, or if anyone here would just like a copy (after I
finish testing it), I really wouldn't have any problems releasing it for
anyone to use...
Thanks in advance for any assistance!
------
H. Lally Singh
Graduate Student, Virginia Tech
Computer Scientist, Geoloc Corporation -
http://www.geoloccorp.com
Staff Writer, Cocoa Dev Central -
http://www.cocoadevcentral.com