Re: Resource compiler error with Pocket PC 2003

r_z_aret_at_pen_fact.com
Date: 07/02/04


Date: Fri, 02 Jul 2004 09:42:48 -0400

First, I'm sure I'm not the only person who builds Pocket PC 2003
executables using eVC. So I'm pretty sure the problem is specific to
your setup and/or code.

I think the real problem is not quite where you're looking. Look
through that header file for precompiler directives that depend on
whether Pocket PC is the target (WIN32_PLATFORM_PSPC may be involved).
Look at the lines preceding the one that seems to be the problem; you
may find another compiler directive that is including the problem
section incorrectly. The real problem may even by a syntax error in
one of your files that includes new.h (directly or indirectly).

I've had somewhat similar problems. They caused some panic, followed
by some pain finding the real cause. Usually followed by a bit of
embarrassment.

On 30 Jun 2004 19:03:11 -0700, joseph.b.martin@baesystems.com (Joe)
wrote:

>Hey all,
> I'm trying to compile an embedded Visual C++ project for the Pocket
>PC 2003, which uses Windows CE.
>
> Whenever I try to compile the resource (.rc) file, I get the
>following error:
>
> "C:\Program Files\Windows CE tools\wce420\POCKET PC
>2003\Include\emulator/new (26) RC2188 #error : This header requires
>a C++ compiler"
>
> The file "...Include\emulator/new " has a preprocessor directive
>that fires this error under the conditon "#ifndef __cplusplus".
>
> It makes sense that the resource compiler doesn't have __cplusplus
>defined (since it's not a C++ compiler). What I don't understand is
>why the compiler is including the "...Include\emulator/new " file. It
>has to do with memory allocation, not with compilation of resources.
>
> I can't compile my project because of this issue.
>
> Also of note: when I change the configuration to "STANDARD SDK"
>instead of "POCKET PC 2003," the problem disappears.
>
> Can anyone help? There's nothing I've found that helps me out with
>this problem.
>
>Thanks so much,
>Joe

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com



Relevant Pages