help-gnunet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnunet] Example Code not compiling


From: Vincent
Subject: Re: [Help-gnunet] Example Code not compiling
Date: Thu, 22 Jun 2017 19:43:12 +0200

Thanks.
Somehow I still had the gnunet-dev package from ubuntu installed.
Removing it and reinstalling from git gives me the ability to compile the testbed. :)

Sorry.


On 14.06.2017 14:50, Christian Grothoff wrote:
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.


_______________________________________________
Help-gnunet mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-gnunet


reply via email to

[Prev in Thread] Current Thread [Next in Thread]