puling my hair out
Folkert van Heusden
folkert at vanheusden.com
Mon Dec 4 10:49:41 CET 2006
Also other api-calls do not work:
folkert at keetweej$ gcc -lstdc++ -lboinc -lboinc_api bt.cpp
/tmp/cciQdLGw.o: In function `main':
bt.cpp:(.text+0x1f): undefined reference to `APP_INIT_DATA::APP_INIT_DATA()'
bt.cpp:(.text+0x39): undefined reference to `APP_INIT_DATA::~APP_INIT_DATA()'
bt.cpp:(.text+0x55): undefined reference to `APP_INIT_DATA::~APP_INIT_DATA()'
collect2: ld returned 1 exit status
1 folkert at keetweej$ cat bt.cpp
#include <stdio.h>
#include <BOINC/boinc_api.h>
int main(int argc, char *argv[])
{
for(;;)
{
APP_INIT_DATA aid;
// printf("%d\n", boinc_get_init_data(aid));
// printf("%s\n", aid.app_name);
sleep(1);
}
return 0;
}
On Mon, Dec 04, 2006 at 10:22:12AM +0100, Folkert van Heusden wrote:
> Hi,
>
> I've installed the following boinc-dev package:
> keetweej:/home/folkert# dpkg --list | grep boinc-dev
> ii boinc-dev 5.4.11-3 development files to build applications for
>
> Now I have the following test.cpp file:
> #include <BOINC/lib/gui_rpc_client.h>
>
> int main(int argc, char *argv[])
> {
> RPC_CLIENT test;
>
> return 0;
> }
>
> Now I try to compile this one:
> g++-4.1 -I /usr/include/BOINC/ -lboinc -lboinc_api -lboinc_graphics_impl -lboinc_graphics_lib -lboinc_zip test.cpp
> and I always get:
> /tmp/ccQDgHXb.o: In function `main':
> test.cpp:(.text+0x19): undefined reference to `RPC_CLIENT::RPC_CLIENT()'
> test.cpp:(.text+0x29): undefined reference to `RPC_CLIENT::~RPC_CLIENT()'
> collect2: ld returned 1 exit status
>
> This is odd since:
> folkert at keetweej:~/Personal/src/boinctail$ strings /usr/lib/libboinc.a | grep -c RPC_CLIENT
> 113
>
> What can be the cause?
>
>
>
> Thank you,
>
>
> Folkert van Heusden
>
> --
> Temperature outside: 9.937500, temperature livingroom: 21.3
> ----------------------------------------------------------------------
> Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
Folkert van Heusden
--
Feeling generous? -> http://www.vanheusden.com/wishlist.php
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the pkg-boinc-devel
mailing list