Open boinc.sln and then build the whole solution.

Wrapper depends on libboinc.vcproj.

----- Rom

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, June 23, 2010 9:43 AM
To: [email protected]
Subject: [boinc_dev] Problem with building the application

Hi, everyone.

I downloaded the folders named 'boinc' and 'boinc_depends_win_vs2005'
from http://boinc.berkeley.edu/trac/browser/trunk,
but I don't know how to use
them. I searched in the boinc documents and mail archive, but I didn't
find any step-by-step answer. 

I get stuck with
a problem when I tried to build the 'wrapper', which is in the
'win_build' 
folder, with Microsoft visual studio C 2005 in windows XP.
Here are the steps
I tried in MSVC2005.

1. Open the 'wrapper.vcproj'.
2. Compile it. 
(Success)
3. Build it. (Fail) (the error messages are at the end of the
mail.)

I suspect there is something wrong with the setting of environment of
Microsoft visual studio C 2005. But I am not sure. Please help!

you
name here.

[Error messages]

------ Build started: Project: wrapper, Configuration: Debug Win32
------ Linking...
wrapper.obj : error LNK2019: unresolved external symbol "public: bool
__thiscall XML_PARSER::parse_double(char *,char const *,double &)"
(?parse_dou...@xml_parser@@qae_npadpbd...@z) referenced in function
"public: int __thiscall TASK::parse(class XML_PARSER &)"
(?pa...@task@@QAEHAAVXML_PARSER@@@Z)
wrapper.obj : error LNK2019: unresolved external symbol "public: bool
__thiscall XML_PARSER::parse_str(char *,char const *,char *,int)"
(?parse_...@xml_parser@@qae_npadpb...@z) referenced in function "public:
int __thiscall TASK::parse(class XML_PARSER &)"
(?pa...@task@@QAEHAAVXML_PARSER@@@Z)
wrapper.obj : error LNK2019: unresolved external symbol "public: bool
__thiscall XML_PARSER::parse_string(char *,char const *,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > &)"
(?parse_str...@xml_parser@@qae_npadpbdaav?$basic_str...@du?$char_traits@
d...@std@@v?$alloca...@d@2@@std@@@Z) referenced in function "public: int
__thiscall TASK::parse(class XML_PARSER &)"
(?pa...@task@@QAEHAAVXML_PARSER@@@Z)
wrapper.obj : error LNK2019: unresolved external symbol "char * __cdecl
boinc_msg_prefix(void)" (?boinc_msg_prefix@@YAPADXZ) referenced in
function "public: int __thiscall TASK::parse(class XML_PARSER &)"
(?pa...@task@@QAEHAAVXML_PARSER@@@Z)
wrapper.obj : error LNK2019: unresolved external symbol "public: bool
__thiscall XML_PARSER::get(char *,int,bool &,char *,int)"
(?...@xml_parser@@qae_npadhaa_...@z) referenced in function "public: int
__thiscall TASK::parse(class XML_PARSER &)"
(?pa...@task@@QAEHAAVXML_PARSER@@@Z)
wrapper.obj : error LNK2019: unresolved external symbol "public: bool
__thiscall XML_PARSER::parse_start(char const *)"
(?parse_st...@xml_parser@@qae_n...@z) referenced in function "int
__cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ) wrapper.obj :
error LNK2019: unresolved external symbol "public: __thiscall
XML_PARSER::XML_PARSER(class MIOFILE *)"
(??0XML_PARSER@@q...@pavmiofile@@@Z) referenced in function "int __cdecl
parse_job_file(void)" (?parse_job_file@@YAHXZ) wrapper.obj : error
LNK2019: unresolved external symbol "public: void __thiscall
MIOFILE::init_file(struct _iobuf *)"
(?init_f...@miofile@@QAEXPAU_iobuf@@@Z) referenced in function "int
__cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ) wrapper.obj :
error LNK2019: unresolved external symbol "public: __thiscall
MIOFILE::~MIOFILE(void)" (??1MIOFILE@@q...@xz) referenced in function
"int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ) wrapper.obj
: error LNK2019: unresolved external symbol _boinc_fopen referenced in
function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
wrapper.obj : error LNK2019: unresolved external symbol
_boinc_resolve_filename referenced in function "int __cdecl
parse_job_file(void)" (?parse_job_file@@YAHXZ) wrapper.obj : error
LNK2019: unresolved external symbol "public: __thiscall
MIOFILE::MIOFILE(void)" (??0MIOFILE@@q...@xz) referenced in function "int
__cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ) wrapper.obj :
error LNK2019: unresolved external symbol "char * __cdecl
windows_error_string(char *,int)" (?windows_error_string@@yapadp...@z)
referenced in function "public: int __thiscall TASK::run(int,char * *)"
(?...@task@@qaehhpa...@z) wrapper.obj : error LNK2019: unresolved
external symbol "int __cdecl boinc_resolve_filename_s(char const *,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > &)"
(?boinc_resolve_filename_s@@yahpbdaav?$basic_str...@du?$char_traits@d...@st
d@@v?$alloca...@d@2@@std@@@Z) referenced in function "public: int
__thiscall TASK::run(int,char * *)" (?...@task@@qaehhpa...@z)
wrapper.obj : error LNK2019: unresolved external symbol
_boinc_delete_file referenced in function "public: int __thiscall
TASK::run(int,char * *)" (?...@task@@qaehhpa...@z) wrapper.obj : error
LNK2019: unresolved external symbol "int __cdecl
suspend_or_resume_threads(unsigned long,unsigned long,bool)"
(?suspend_or_resume_threads@@yahk...@z) referenced in function "public:
void __thiscall TASK::stop(void)" (?s...@task@@QAEXXZ) wrapper.obj :
error LNK2019: unresolved external symbol _boinc_get_status referenced
in function "void __cdecl poll_boinc_messages(struct TASK &)"
(?poll_boinc_messages@@YAXAAUTASK@@@Z)
wrapper.obj : error LNK2019: unresolved external symbol "int __cdecl
boinc_process_cpu_time(void *,double &)"
(?boinc_process_cpu_time@@yahpax...@z) referenced in function "public:
double __thiscall TASK::cpu_time(void)" (?cpu_t...@task@@QAENXZ)
wrapper.obj : error LNK2019: unresolved external symbol
_boinc_report_app_status referenced in function "void __cdecl
send_status_message(struct TASK &,double,double)"
(?send_status_message@@YAXAAUTASK@@n...@z)
wrapper.obj : error LNK2019: unresolved external symbol "void __cdecl
boinc_sleep(double)" (?boinc_sleep@@y...@z) referenced in function _main
wrapper.obj : error LNK2019: unresolved external symbol _boinc_finish
referenced in function _main wrapper.obj : error LNK2019: unresolved
external symbol "int __cdecl boinc_get_init_data(struct APP_INIT_DATA
&)" (?boinc_get_init_data@@YAHAAUAPP_INIT_DATA@@@Z) referenced in
function _main wrapper.obj : error LNK2019: unresolved external symbol
_boinc_init_options referenced in function _main wrapper.obj : error
LNK2019: unresolved external symbol "int __cdecl parse_command_line(char
*,char * *)" (?parse_command_line@@yahpadpa...@z) referenced in function
_winm...@16 wrapper.obj : error LNK2019: unresolved external symbol
"public: __thiscall APP_INIT_DATA::APP_INIT_DATA(void)"
(??0APP_INIT_DATA@@q...@xz) referenced in function "void __cdecl `dynamic
initializer for 'aid''(void)" (??__Eaid@@YAXXZ) wrapper.obj : error
LNK2019: unresolved external symbol "public: __thiscall
APP_INIT_DATA::~APP_INIT_DATA(void)" (??1APP_INIT_DATA@@q...@xz)
referenced in function "void __cdecl `dynamic atexit destructor for
'aid''(void)" (??__Faid@@YAXXZ)
.\Build\Win32\Debug\wrapper_6.1_windows_intelx86.exe : fatal error
LNK1120: 26 unresolved externals Build log was saved at
"file://c:\Documents and
Settings\Administrator\desktop\boinc\win_build\Build\Win32\Debug\wrapper
\obj\BuildLog.htm"
wrapper - 27 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========


      
_______________________________________________
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