Thread 'Compiling Hello, BOINC World!'

Message boards : Questions and problems : Compiling Hello, BOINC World!
Message board moderation

To post messages, you must log in.

AuthorMessage
Napoleon Mila de la Roca

Send message
Joined: 2 Dec 11
Posts: 1
Venezuela
Message 41448 - Posted: 2 Dec 2011, 20:13:46 UTC

Hi, I've install the Boinc server and seems to be working OK... but when I was trying to add my first app "hello.C" from: "http://www.pkids.net/help/boinc/hello.html" I got stuck!!!

I'll just paste my prompt when I ran make to compile hello.C:

gridnapo:/var/www/boinc/apps/hello# make
g++ -I/usr/local/boinc/include/boinc -g -c hello.C -o hello.o
In file included from hello.C:21:
/usr/local/src/boinc/api/boinc_api.h:121:21: error: app_ipc.h: No such file or directory
hello.C:28:57: error: /usr/local/src/boinc/lib/version.h: No such file or directory
In file included from hello.C:21:
/usr/local/src/boinc/api/boinc_api.h:135: error: expected initializer before '*' token
make: *** [hello.o] Error 1
gridnapo:/var/www/boinc/apps/hello#


At first I thought "I got it!!!" it's just that in the hello.C it's missing the path to access the Boinc headers.... so I type it like this:



#include "/usr/local/src/boinc/api/boinc_api.h"
#include "/usr/local/src/boinc/lib/diagnostics.h"
#include "/usr/local/src/boinc/lib/filesys.h"
#include "/usr/local/src/boinc/lib/str_util.h"


// version.h is only used to get BOINC version numbers
#include "/usr/local/src/boinc/lib/version.h"


But it didn't work.... :( Does any one has a clue???

Thanks in advance for your time and Brains!!!!
Napoleon Mila de la Roca
ID: 41448 · Report as offensive

Message boards : Questions and problems : Compiling Hello, BOINC World!

Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.