POCKET PC FIRST BUILD

i got my first smart device, pocket pc to load yesterday. all night and all day i tried to compile the basic windows file. i am completely lost on how to get it to compile. can someone help me here are the ouputs for the basic compile....

------ Rebuild All started: Project: cccc, Configuration: Debug Windows Mobile 5.0 Pocket PC SDK (ARMV4I) ------

Deleting intermediate and output files for project 'cccc', configuration 'Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)'

Compiling...

stdafx.cpp

C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(51) : warning C4005: 'UNALIGNED' : macro redefinition

C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdefs.h(548) : see previous definition of 'UNALIGNED'

C:\Program Files\Microsoft Visual Studio 8\VC\include\malloc.h(194) : error C2065: '_ALLOCA_S_MARKER_SIZE' : undeclared identifier

C:\Program Files\Microsoft Visual Studio 8\VC\ce\include\altcecrt.h(375) : error C2084: function 'errno_t wmemcpy_s(wchar_t *,rsize_t,const wchar_t *,rsize_t)' already has a body

C:\Program Files\Microsoft Visual Studio 8\VC\include\wchar.h(1217) : see previous definition of 'wmemcpy_s'

C:\Program Files\Microsoft Visual Studio 8\VC\ce\include\altcecrt.h(380) : error C2084: function 'errno_t wmemmove_s(wchar_t *,rsize_t,const wchar_t *,rsize_t)' already has a body

C:\Program Files\Microsoft Visual Studio 8\VC\include\wchar.h(1237) : see previous definition of 'wmemmove_s'

Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\cccc\cccc\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\BuildLog.htm"

cccc - 3 error(s), 1 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========




Answer this question

POCKET PC FIRST BUILD

  • David C Baldauff

    Start with a default C++ application project as created by wizard. Add your own code incrementally until you find what breaks the compile. Stand back and think about what you just added. If you just can't figure out why this particular change breaks the build, *then* ask a specific question.

  • davidhov

    i ran the file through the preprocessor, and the file errors are these now.

    ------ Rebuild All started: Project: aaaa, Configuration: Debug Win32 ------

    Deleting intermediate and output files for project 'aaaa', configuration 'Debug|Win32'

    Compiling...

    stdafx.cpp

    c:\program files\microsoft visual studio 8\smartdevices\sdk\pocketpc2003\include\winnt.h(3019) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'

    c:\program files\microsoft visual studio 8\smartdevices\sdk\pocketpc2003\include\winnt.h(3019) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    c:\program files\microsoft visual studio 8\smartdevices\sdk\pocketpc2003\include\winnt.h(3019) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\aaaa\aaaa\Debug\BuildLog.htm"

    aaaa - 3 error(s), 0 warning(s)

    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========



  • tsoft

    well, i started with includes. and got this error.

    ------ Rebuild All started: Project: Project11, Configuration: Debug Win32 ------

    Deleting intermediate and output files for project 'Project11', configuration 'Debug|Win32'

    Compiling...

    windows4b.cpp

    C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\crtdefs.h(36) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.

    Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Project11\Project11\Debug\BuildLog.htm"

    Project11 - 1 error(s), 0 warning(s)

    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

    s

    so then i took the program apart, and got this error after removing each function.

    ------ Rebuild All started: Project: Project11, Configuration: Debug Win32 ------

    Deleting intermediate and output files for project 'Project11', configuration 'Debug|Win32'

    Compiling...

    windows4b.cpp

    C:\Program Files\Microsoft Visual Studio 8\VC\crt\src\crtdefs.h(36) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.

    Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Project11\Project11\Debug\BuildLog.htm"

    Project11 - 1 error(s), 0 warning(s)

    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

    after i remove all functions and headers i get this error.

    ------ Rebuild All started: Project: Project11, Configuration: Debug Win32 ------

    Deleting intermediate and output files for project 'Project11', configuration 'Debug|Win32'

    Compiling...

    windows4b.cpp

    Linking...

    LINK : fatal error LNK1561: entry point must be defined

    Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\Project11\Project11\Debug\BuildLog.htm"

    Project11 - 1 error(s), 0 warning(s)

    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

    from what i read in help, use of C runtime library internal header, this error crtdefs.h(36) is a bug. it is showing up on my other files also. is it time for system rebuild



  • vannielou

    I think you are approaching this from the wrong end. You are trying to fix your project. Instead you need to create a new project, make sure it builds and then start adding your stuff to it.

  • yanivpinhas

    well, i built a new wizard project, no includes. it was a simple hello world. i built the project, and it said it was built. when i went to debug it wasn't there. simple hello world should work. it did not. i was born slow, but that is slower than me. do you think i should rebuild again or maybe the are some configuration flags i can set to free up hello world, so i do not spend 3 hours figuring this out. i saw this on my beta test, where the compiler said the file compiled and there were no files. i get answers so i am learning.

  • kiwicoder2

    I found an answer. crtdefs was the file in question, so i removed it's include file directory. the problem went away, and all three of my base programs compiled

  • POCKET PC FIRST BUILD