[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnunet] Example Code not compiling
From: |
Christian Grothoff |
Subject: |
Re: [Help-gnunet] Example Code not compiling |
Date: |
Wed, 14 Jun 2017 14:50:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 06/14/2017 02:00 PM, Vincent wrote:
> Hi,
> everytime I try to comile the testbed it doesn't work:
>
> gcc $CPPFLAGS $LDFLAGS -o testbed-test testbed_test.c -lgnunettestbed
> -lgnunetdht -lgnunetutil
> /tmp/ccZmNcYw.o: In function `service_connect_comp':
> testbed_test.c:(.text+0xe9): undefined reference to `GNUNET_abort_'
> /tmp/ccZmNcYw.o: In function `test_master':
> testbed_test.c:(.text+0x1e3): undefined reference to
> `GNUNET_SCHEDULER_add_shutdown'
> collect2: error: ld returned 1 exit status
>
> So I think I don't link all the necessary libraries. But what library am
> I missing?
Very strange, the symbols are in libgnunetutil, which you do link against.
_Maybe_ you have some ancient version thereof on your system. You might
want to try building with the usual 'Makefile.am' inside of the GNUnet
configure/autotool process, as that is, eh, more likely to give you the
correct $LDFLAGS. Regardless, the list of libraries is correct, so this
is most likely an issue with your installation / system / paths.
0xE29FC3CC.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature