How to compile example
matthew.finkel at gmail.com
Wed Feb 29 02:24:18 CET 2012
On Tue, Feb 28, 2012 at 5:00 PM, Peter Penzov <peter.penzov at gmail.com>wrote:
> I'm trying to compile the example ex-serv-srp.c with the command gcc -o
> server ex-serv-srp.c -lgnutls
> I get this error:
> [rcbandit at Laptop GnuTLS 3.14 examples]$ gcc -o server ex-serv-srp.c
> ex-serv-srp.c: In function ‘main’:
> ex-serv-srp.c:118: warning: cast to pointer from integer of different size
> /tmp/cc5xxpcN.o: In function `main':
> ex-serv-srp.c:(.text+0xb3): undefined reference to
> ex-serv-srp.c:(.text+0xcc): undefined reference to
> ex-serv-srp.c:(.text+0x322): undefined reference to
> collect2: ld returned 1 exit status
> I'm sure that I'm missing an argument in gcc command. Can you tell what
> commands I need to execute in order to compile the example.
> Best wishes
It looks like a linking issue. Do you have the libraries installed
(libgnutls)? I know they're contained in a separate package in some distro.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-help