Have a look at the last lines. It's stated that an implementation of the 
function 
"assimilate_handler" is missing. For solving such a problem it is necessary to 
implement this 
function in one of your files or to create an additional file, e.g. just add 
"void 
assimilate_handler(WORKUNIT&, std::vector<RESULT, std::allocator<RESULT> >&, 
RESULT&) { /* empty */ 
}" to assimilator.cpp.

This is not a makefile problem, except for you have somewhere an 
implementation. In this case, just 
add this file to your compiling process.

On 31/07/12 06:09, Игорь Угай wrote:
> At first i compile .cpp file:
> g++ -c assimilator.cpp -pthread -Wall -I. -I /home/boincadm/boinc -I 
> /home/boincadm/boinc/lib -I /home/boincadm/boinc/api -I 
> /home/boincadm/boinc/db -I /home/boincadm/boinc/client -I 
> /home/boincadm/boinc/tools -I /home/boincadm/boinc/sched -I 
> /usr/include/mysql /home/boincadm/boinc/sched/libsched.a 
> /home/boincadm/boinc/lib/libboinc_crypt.a /usr/lib/libmysqlclient.a -lz -lssl 
> /home/boincadm/boinc/api/libboinc_api.a /home/boincadm/boinc/lib/libboinc.a
>
> This command generates .o flie, when I try to compile them following command:
> g++ assimilator.o -pthread -Wall -I. -I /home/boincadm/boinc -I 
> /home/boincadm/boinc/lib -I /home/boincadm/boinc/api -I 
> /home/boincadm/boinc/db -I /home/boincadm/boinc/client -I 
> /home/boincadm/boinc/tools -I /home/boincadm/boinc/sched -I 
> /usr/include/mysql /home/boincadm/boinc/sched/libsched.a 
> /home/boincadm/boinc/lib/libboinc_crypt.a /usr/lib/libmysqlclient.a -lz -lssl 
> /home/boincadm/boinc/api/libboinc_api.a /home/boincadm/boinc/lib/libboinc.a 
> -o assimilator
> assimilator.o: In function `do_pass(APP&)':
> assimilator.cpp:(.text+0x34a): undefined reference to 
> `assimilate_handler(WORKUNIT&, std::vector<RESULT, std::allocator<RESULT> >&, 
> RESULT&)'
> collect2: ld returned 1 exit status
> make: *** [all] Error 1

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to