Posts by Marcofe

1) Message boards : Server programs : Problem with "Validator" creating (Message 36429)
Posted 13 Jan 2011 by Marcofe
Post:
Tnx for your answers...you've been very helpfulls..
2) Message boards : Server programs : Problem with "Validator" creating (Message 36398)
Posted 11 Jan 2011 by Marcofe
Post:
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




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.