Build POCO C++ for WinCE: winbase.h related errors -
i'm trying build poco 1.6.1 c++ libraries visual studio 2008 command prompt (vs 9.0 professional sp1 windows embedded compact 7 atl update) on windows 7 pro x64 using provided buildwin.cmd this:
buildwin 90 build static_mt both wince samples however build of foundation library (foundation_ce_vs90.vcproj) fails due several errors in c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h, apparently needed following files:
wce_winbase.c wce_path.c wce_directorymanagement.c wce_clock.c the file wce_rewind.c seems buggy itself.
trivial going on can't find out. here's attached relevant part of output (the target beckhoff_hmi_700 (x86) windows embedded compact 7 device of interest, sdk appears correctly configured on machine - can provide more detail if needed). many everybody.
setting environment using microsoft visual studio 2008 x86 tools. ######################################################################## #### #### starting visual studio build (vs90, wince) #### ######################################################################## following configurations built: debug_static_mt release_static_mt ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++ building [cppunit_ce_vs90.vcproj] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ microsoft (r) visual studio version 9.0.30729.1. copyright (c) microsoft corp. rights reserved. 1>------ build started: project: cppunit, configuration: debug_static_mt beckhoff_hmi_700 (x86) ------ 1>compiling... 1>texttestresult.cpp 1>testsuite.cpp 1>testrunner.cpp 1>testresult.cpp 1>testfailure.cpp 1>testdecorator.cpp 1>testcase.cpp 1>generating code... 1>compiling... 1>cppunitexception.cpp 1>creating library... 1>build log saved @ "file://c:\poco-1.6.1\cppunit\obj\beckhoff_hmi_700 (x86)\debug_static_mt\buildlog.htm" 1>cppunit - 0 error(s), 0 warning(s) ========== build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== microsoft (r) visual studio version 9.0.30729.1. copyright (c) microsoft corp. rights reserved. 1>------ build started: project: cppunit, configuration: release_static_mt beckhoff_hmi_700 (x86) ------ 1>compiling... 1>texttestresult.cpp 1>testsuite.cpp 1>testrunner.cpp 1>testresult.cpp 1>testfailure.cpp 1>testdecorator.cpp 1>testcase.cpp 1>generating code... 1>compiling... 1>cppunitexception.cpp 1>creating library... 1>build log saved @ "file://c:\poco-1.6.1\cppunit\obj\beckhoff_hmi_700 (x86)\release_static_mt\buildlog.htm" 1>cppunit - 0 error(s), 0 warning(s) ========== build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ------------------------------------------------------------------------ ------------------------------------------------------------------------ ---- done building [cppunit_ce_vs90.vcproj] ------------------------------------------------------------------------ ------------------------------------------------------------------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++ building [foundation_ce_vs90.vcproj] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ microsoft (r) visual studio version 9.0.30729.1. copyright (c) microsoft corp. rights reserved. 1>------ build started: project: foundation, configuration: debug_static_mt beckhoff_hmi_700 (x86) ------ 1>compiling... 1>base32decoder.cpp 1>variterator.cpp 1>varholder.cpp 1>var.cpp 1>void.cpp 1>stringtokenizer.cpp 1>directoryiteratorstrategy.cpp 1>numericstring.cpp 1>string.cpp 1>sorteddirectoryiterator.cpp 1>refcountedobject.cpp 1>numberparser.cpp 1>numberformatter.cpp 1>nesteddiagnosticcontext.cpp 1>memorypool.cpp 1>fpenvironment.cpp 1>format.cpp 1>exception.cpp 1>error.cpp 1>environment.cpp 1>generating code... 1>compiling... 1>debugger.cpp 1>checksum.cpp 1>byteorder.cpp 1>bugcheck.cpp 1>atomiccounter.cpp 1>generating code... 1>compiling... 1>wce_winbase.c 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(238) : error c2016: c requires struct or union has @ least 1 member 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(238) : error c2061: syntax error : identifier 'ulong_ptr' 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(239) : error c2061: syntax error : identifier 'internalhigh' 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(239) : error c2059: syntax error : ';' 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(242) : error c2016: c requires struct or union has @ least 1 member 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(242) : error c2061: syntax error : identifier 'dword' [...] 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(418) : error c2061: syntax error : identifier 'void' 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(418) : fatal error c1003: error count exceeds 100; stopping compilation 1>wce_unlink.c 1>wce_timesys.c 1>wce_time.c 1>wce_strerror.c 1>wce_stat.c 1>wce_setlocale.c 1>wce_rmdir.c 1>wce_rewind.c 1>.\wcelibcex-1.0\src\wce_rewind.c(64) : error c2143: syntax error : missing ')' before '*' 1>.\wcelibcex-1.0\src\wce_rewind.c(64) : error c2143: syntax error : missing '{' before '*' 1>.\wcelibcex-1.0\src\wce_rewind.c(64) : error c2059: syntax error : ')' 1>.\wcelibcex-1.0\src\wce_rewind.c(65) : error c2054: expected '(' follow 'fp' 1>wce_rename.c 1>wce_path.c 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(238) : error c2016: c requires struct or union has @ least 1 member [...] 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(436) : fatal error c1003: error count exceeds 100; stopping compilation 1>wce_mktime.c 1>wce_mkdir.c 1>wce_localtime.c 1>wce_lfind.c 1>wce_gettimeofday.c 1>wce_getopt.c 1>wce_getenv.c 1>wce_findfile.c 1>wce_errno.c 1>generating code... 1>compiling... 1>wce_directorymanagement.c 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(238) : error c2016: c requires struct or union has @ least 1 member [...] 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(418) : fatal error c1003: error count exceeds 100; stopping compilation 1>wce_ctime.c 1>wce_clock.c 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(238) : error c2016: c requires struct or union has @ least 1 member [...] 1>c:\program files\microsoft sdks\windows\v6.0a\include\winbase.h(418) : fatal error c1003: error count exceeds 100; stopping compilation 1>wce_bsearch.c 1>wce_asctime.c 1>.\wcelibcex-1.0\src\wce_asctime.c(124) : warning c4013: 'sprintf' undefined; assuming extern returning int 1>wce_access.c 1>.\wcelibcex-1.0\src\wce_access.c(67) : error c2065: 'sfgao_readonly' : undeclared identifier 1>wce_abort.c 1>generating code... 1>compiling... 1>hashstatistic.cpp 1>hash.cpp 1>eventargs.cpp 1>tasknotification.cpp 1>taskmanager.cpp [...] 1>pcre_exec.c 1>pcre_compile.c 1>generating code... 1>compiling... 1>pcre_chartables.c 1>generating code... 1>compiling... 1>regularexpression.cpp 1>sharedlibrary.cpp 1>c:\poco-1.6.1\foundation\src\sharedlibrary_win32u.cpp(86) : error c3861: 'getprocaddressw': identifier not found 1>manifest.cpp 1>sha1engine.cpp 1>randomstream.cpp [...] 1>generating code... 1>compiling... 1>zutil.c 1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdio.h(720) : error c2059: syntax error : '(' 1>.\src\zutil.c(147) : error c2072: '_errno' : initialization of function 1>trees.c 1>inftrees.c 1>inflate.c 1>inffast.c [...] 1>base64decoder.cpp 1>base32encoder.cpp 1>generating code... 1>build log saved @ "file://c:\poco-1.6.1\foundation\obj\foundation\beckhoff_hmi_700 (x86)\debug_static_mt\buildlog.htm" 1>foundation - 416 error(s), 1 warning(s) 2>------ build started: project: testsuite, configuration: debug_static_mt beckhoff_hmi_700 (x86) ------ 3>------ build started: project: testapp, configuration: debug_static_mt beckhoff_hmi_700 (x86) ------ 4>------ build started: project: testlibrary, configuration: debug_static_mt beckhoff_hmi_700 (x86) ------ 3>compiling... 4>compiling... 3>testapp_wince.cpp 4>testlibrary.cpp 2>compiling... 2>anytest.cpp 2>vartest.cpp 4>testplugin.cpp 4>generating code... 3>linking... 4>linking... 3>link : fatal error lnk1181: cannot open input file 'pocofoundationmtd.lib' 4>link : fatal error lnk1181: cannot open input file 'pocofoundationmtd.lib' 3>build log saved @ "file://c:\poco-1.6.1\foundation\testsuite\obj\testapp\beckhoff_hmi_700 (x86)\debug_static_mt\buildlog.htm" 3>testapp - 1 error(s), 0 warning(s) 4>build log saved @ "file://c:\poco-1.6.1\foundation\testsuite\obj\testlibrary\beckhoff_hmi_700 (x86)\debug_static_mt\buildlog.htm" 4>testlibrary - 1 error(s), 0 warning(s) 2>dynamictestsuite.cpp 2>simplehashtabletest.cpp 2>linearhashtabletest.cpp 2>hashtabletest.cpp 2>hashsettest.cpp 1>inffast.c [...] 2>byteordertest.cpp 2>autoreleasepooltest.cpp 2>autoptrtest.cpp 2>arraytest.cpp 2>generating code... 2>linking... 2>link : fatal error lnk1181: cannot open input file 'pocofoundationmtd.lib' 2>build log saved @ "file://c:\poco-1.6.1\foundation\testsuite\obj\testsuite\beckhoff_hmi_700 (x86)\debug_static_mt\buildlog.htm" 2>testsuite - 1 error(s), 0 warning(s) ========== build: 0 succeeded, 4 failed, 0 up-to-date, 0 skipped ========== xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx build failed. exiting. xxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
something off either sdk or include paths using. ce build should never use under c:\program files\microsoft sdks\windows\v6.0a\include\; these headers of desktop windows sdk. winbase.h used build should device's sdk headers unter c:\program files (x86)\windows ce tools\sdks\[platform name]\include\[architecture]\.
you should check whether desktop windows sdk headers somewhere in include paths , remove them accordingly. since cppunit seems building correctly , assuming can build other software same device sdk, first place them in foundation_ce_vs90.vcproj.
Comments
Post a Comment