[Help-gnutls] Re: duplicate symbols complaint on Mac OS X 10.5.2

David Reiser dbreiser at gmail.com
Wed Mar 19 02:59:17 CET 2008


On Mar 18, 2008, at 4:01 PM, Ludovic Courtès wrote:

> Hi,
>
> David Reiser <dbreiser at gmail.com> writes:
>
>> On Mar 18, 2008, at 5:32 AM, Ludovic Courtès wrote:
>
>>> Can you try compiling something like:
>>>
>>> #include <gmp.h>
>>>
>>> void
>>> foo (mpz_t a, mpz_t b)
>>> {
>>>   mpz_abs (a, b);
>>> }
>>>
>>> And then run:
>>>
>>> $ nm -g the-file.o | grep mpz_abs
>
>> It turns out I am incapable of accomplishing that.
>
> Actually you just want to compile the file, not to link it and  
> create an
> executable.
>
> So, assuming you copied the above code fragment in `the-file.c', then
> you just need to compile it with:
>
>  $ gcc -c the-file.c
>
> After which you can run `nm' as noted above.
>
> Thanks,
> Ludovic.
>
It has been so long since I wanted to prevent a linker from doing its  
thing, I forgot it was easy.

$ nm -g bar.o | grep mpz_abs
          U ___gmpz_abs

Thanks for your help and patience.

Dave
--
David Reiser
dbreiser at gmail.com








More information about the Gnutls-help mailing list