[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to compile example
From: |
lfinsto |
Subject: |
Re: How to compile example |
Date: |
Wed, 29 Feb 2012 09:00:13 +0100 |
User-agent: |
SquirrelMail/1.4.21 |
> 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.
-L<path to library>
Laurence Finston
On Tue, February 28, 2012 11:00 pm, Peter Penzov wrote:
> Hi,
> 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:
>
> address@hidden GnuTLS 3.14 examples]$ gcc -o server ex-serv-srp.c
> -lgnutls
> 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
> `gnutls_srp_allocate_server_credentials'
> ex-serv-srp.c:(.text+0xcc): undefined reference to
> `gnutls_srp_set_server_credentials_file'
> ex-serv-srp.c:(.text+0x322): undefined reference to
> `gnutls_srp_server_get_username'
> 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
> Peter
> _______________________________________________
> Help-gnutls mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-gnutls
>
-------------------------------------------------------------
Laurence Finston
Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH
Am Fassberg 11
37077 Goettingen
Telefon: +49 551 201-1882
E-Mail: address@hidden