Problem with "Validator" creating

Message boards : Server programs : Problem with "Validator" creating
Message board moderation

To post messages, you must log in.

AuthorMessage
Marcofe

Send message
Joined: 11 Jan 11
Posts: 2
Italy
Message 36398 - Posted: 11 Jan 2011, 18:50:39 UTC
Last modified: 11 Jan 2011, 19:46:51 UTC

Hi everybody,
i'm writing here cause, i've an error in compiling process.
i'm using example code in http://boinc.berkeley.edu/trac/wiki/ValidationSimple and when i compile it with this makefile

GCC = g++
iLIBS = -lmysqlclient -lsched  -lboinc -lboinc_api
INCLUDE = -I/usr/include/mysql
PROGNAME = myvalidator

${PROGNAME}:${PROGNAME}.cpp
        ${GCC} -o ${PROGNAME} ${PROGNAME}.cpp ${INCLUDE} ${LIBS}


i receive this error:


g++ -o myvalidator myvalidator.cpp -I/usr/include/mysql
myvalidator.cpp: In function ‘int init_result(RESULT&, void*&)’:
myvalidator.cpp:42: warning: format ‘%f’ expects type ‘float*’, but argument 4 has type ‘double*’
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
/tmp/ccwiCAXC.o: In function `init_result(RESULT&, void*&)':
myvalidator.cpp:(.text+0x24): undefined reference to `get_output_file_path(RESULT&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
myvalidator.cpp:(.text+0x5a): undefined reference to `try_fopen(char const*, _IO_FILE*&, char const*)'
collect2: ld returned 1 exit status
make: *** [myvalidator] Error 1


Can anyone help me?Tnx
ID: 36398 · Report as offensive
Marcofe

Send message
Joined: 11 Jan 11
Posts: 2
Italy
Message 36429 - Posted: 13 Jan 2011, 16:37:13 UTC

Tnx for your answers...you've been very helpfulls..
ID: 36429 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 36430 - Posted: 13 Jan 2011, 16:44:34 UTC - in response to Message 36429.  

No need for sarcasm. The people who usually answer these kinds of questions have not passed by the forums in the past couple of days. That can happen, they can be occupied elsewhere.

And as such, we have the warning thread stickied at the top of the forums, if you don't get an answer within 24 hours, email the lists. In this case the BOINC Developer list.
ID: 36430 · Report as offensive

Message boards : Server programs : Problem with "Validator" creating

Copyright © 2024 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.