Problem with compiling in windows

Message boards : API : Problem with compiling in windows
Message board moderation

To post messages, you must log in.

AuthorMessage
Hao Yui

Send message
Joined: 23 May 09
Posts: 1
Vietnam
Message 25008 - Posted: 23 May 2009, 4:13:09 UTC

I'm having a problem when compiling the wrapper application (boinc\samples\wrapper) with VS2005. I'm using BOINC server stable version 6.2:
http://boinc.berkeley.edu/trac/browser/branches/server_stable
And tried to follow the guidance from: http://boinc.berkeley.edu/trac/wiki/CompileApp
But I encountered lots of errors like below:

1>wrapper.obj : error LNK2019: unresolved external symbol "public: bool __thiscall XML_PARSER::parse_double(char *,char const *,double &)" (?parse_double@XML_PARSER@@
QAE_NPADPBDAAN@Z) referenced in function "public: int __thiscall TASK::parse(class XML_PARSER &)" (?parse@TASK@@QAEHAAVXML_PARSER@@@Z)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: bool __thiscall XML_PARSER::parse_str(char *,char const *,char *,int)" (?parse_str@XML_PARSER@@QAE_NPADPBD0H@Z) referenced in function "public: int __thiscall TASK::parse(class XML_PARSER &)" (?parse@TASK@@QAEHAAVXML_PARSER@@@Z)
1>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_string@XML_PARSER@@QAE_NPADPBDAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: int __thiscall TASK::parse(class XML_PARSER &)" (?parse@TASK@@QAEHAAVXML_PARSER@@@Z)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: bool __thiscall XML_PARSER::get(char *,int,bool &,char *,int)" (?get@XML_PARSER@@QAE_NPADHAA_N0H@Z) referenced in function "public: int __thiscall TASK::parse(class XML_PARSER &)" (?parse@TASK@@QAEHAAVXML_PARSER@@@Z)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: bool __thiscall XML_PARSER::parse_start(char const *)" (?parse_start@XML_PARSER@@QAE_NPBD@Z) referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: __thiscall XML_PARSER::XML_PARSER(class MIOFILE *)" (??0XML_PARSER@@QAE@PAVMIOFILE@@@Z) referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: void __thiscall MIOFILE::init_file(struct _iobuf *)" (?init_file@MIOFILE@@QAEXPAU_iobuf@@@Z) referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: __thiscall MIOFILE::~MIOFILE(void)" (??1MIOFILE@@QAE@XZ) referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol _boinc_fopen referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol _boinc_resolve_filename referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: __thiscall MIOFILE::MIOFILE(void)" (??0MIOFILE@@QAE@XZ) referenced in function "int __cdecl parse_job_file(void)" (?parse_job_file@@YAHXZ)
1>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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: int __thiscall TASK::run(int,char * *)" (?run@TASK@@QAEHHPAPAD@Z)
1>wrapper.obj : error LNK2019: unresolved external symbol "int __cdecl suspend_or_resume_threads(unsigned long,bool)" (?suspend_or_resume_threads@@YAHK_N@Z) referenced in function "public: void __thiscall TASK::stop(void)" (?stop@TASK@@QAEXXZ)
1>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)
1>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@@NN@Z)
1>wrapper.obj : error LNK2019: unresolved external symbol "void __cdecl boinc_sleep(double)" (?boinc_sleep@@YAXN@Z) referenced in function _main
1>wrapper.obj : error LNK2019: unresolved external symbol _boinc_finish referenced in function _main
1>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
1>wrapper.obj : error LNK2019: unresolved external symbol _boinc_init_options referenced in function _main
1>wrapper.obj : error LNK2019: unresolved external symbol "int __cdecl parse_command_line(char *,char * *)" (?parse_command_line@@YAHPADPAPAD@Z) referenced in function _WinMain@16
1>wrapper.obj : error LNK2019: unresolved external symbol "public: __thiscall APP_INIT_DATA::APP_INIT_DATA(void)" (??0APP_INIT_DATA@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'aid''(void)" (??__Eaid@@YAXXZ)
1>wrapper.obj : error LNK2019: unresolved external symbol "public: __thiscall APP_INIT_DATA::~APP_INIT_DATA(void)" (??1APP_INIT_DATA@@QAE@XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'aid''(void)" (??__Faid@@YAXXZ)
1>.\Build\Win32\Debug\wrapper_6.1_windows_intelx86.exe : fatal error LNK1120: 22 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\branches\server_stable\win_build\Build\Win32\Debug\wrapper\obj\BuildLog.htm"
1>wrapper - 23 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========

I've been trying to fix (check the path, include, libraries,...) it but no luck. If it's possible can any of you compile the file and send it to me via zermaniboi@gmail.com?
Thank you very much
ID: 25008 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 25044 - Posted: 26 May 2009, 1:39:48 UTC - in response to Message 25008.  

There may be file dependencies (additional source files) missing from your project file.

-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 25044 · Report as offensive

Message boards : API : Problem with compiling in windows

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.