PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PPC SDK and eVC++ errors, really strange..

ok when i try to compile a piece of code of mine i get these errors

C:\Windows CE Tools\wce300\MS Pocket PC\include\stdlib.h(928) : error C2065: '_JBLEN' : undeclared identifier
C:\Windows CE Tools\wce300\MS Pocket PC\include\stdlib.h(928) : error C2057: expected constant expression
C:\Windows CE Tools\wce300\MS Pocket PC\include\stdlib.h(928) : error C2466: cannot allocate an array of constant size 0
C:\Windows CE Tools\wce300\MS Pocket PC\include\winnt.h(3153) : error C2061: syntax error : identifier 'PCONTEXT'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winnt.h(3154) : error C2059: syntax error : '}'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1326) : error C2061: syntax error : identifier 'LPCONTEXT'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1326) : error C2059: syntax error : ';'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1923) : error C2146: syntax error : missing ')' before identifier 'lpContext'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1923) : error C2081: 'LPCONTEXT' : name in formal parameter list illegal
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1923) : error C2061: syntax error : identifier 'lpContext'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1923) : error C2059: syntax error : ';'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1924) : error C2059: syntax error : ')'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1931) : error C2143: syntax error : missing ')' before '*'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1931) : error C2143: syntax error : missing '{' before '*'
C:\Windows CE Tools\wce300\MS Pocket PC\include\winbase.h(1932) : error C2059: syntax error : ')'
C:\Windows CE Tools\wce300\MS Pocket PC\include\excpt.h(45) : error C2061: syntax error : identifier 'LPCONTEXT'
C:\Windows CE Tools\wce300\MS Pocket PC\include\excpt.h(45) : error C2059: syntax error : ';'
C:\Windows CE Tools\wce300\MS Pocket PC\include\excpt.h(57) : error C2061: syntax error : identifier 'PCONTEXT'
C:\Windows CE Tools\wce300\MS Pocket PC\include\excpt.h(59) : error C2059: syntax error : '}'
Z:\Users\jurgen\Documents\code\PeopsSoftGpu107 Folder\src\stdafx.h(39) : fatal error C1083: Cannot open include file: 'ddraw.h': No such file or directory
Draw.c





over and over again, like at after Draw.c i get the same errors. Then when it trys to compile another file such as GPU.c i get the same errors. again and again for every single file of mine. I was able to compile the standard Hello World app though. These Errors are strange and annoying, please help.

Also, for some odd reason, the PPC SDK wont let me use ARM as a target platform, when i check for ARM its just blank. ArRrRrRrRrRrRrR DAMN YOU MS!!!! RRRR hehe
the reference to ddraw.h seems suspicious ... are you trying to compile a DirectX application ? 8O otherwise it's normal to get a lot of strange errors if stdafx.h parsing fails :wink:
errors like those??ARR

my Stdafx.h looks like this


Code:

#define STRICT
#define D3D_OVERLOADS

#include <WINDOWS.H>
#include <WINDOWSX.H>
#include <TCHAR.H>
#include <ddraw.h>
#include <d3d.h>
#include "resource.h"


// stupid intel compiler warning on extern __inline funcs
#pragma warning (disable:864)


well thats what it looks like :( this is pissing me off... dont mind the ddraw.h and d3d.h those will be changed real soon.
well it definetly was errors with StdAfx.h which i all got fixed now.

now all i have are stupid ars DirectDraw errors which need to be changed to work with GAPI... off to work now :D
Yeah, the compilers in MS's Embedded Visual Tools are shit. I don't know much about the C++ compiler, but the eVB one has alot of problems. I will have an application running just fine and the debugger will say there are no errors in the code. Then I will go work on my application later and not touch the code, and all of the sudden the debugger will say there is errors in my code! It's really weird. I also notice that whenever I add a componite to my application the debugger will find errors that it never caught before.
componite makes me weak and cancels out my super powers... agh! *dies*