Skip to main content

PhoneME cldc comple error:

2 replies [Last post]
91program
Offline
Joined: 2009-05-19

first, in console, i run the D:\PhoneME\Work\cldc\build\wince_arm\setenv_evc40.bat and \"Program Files\Microsoft eMbedded C++ 4.0\EVC\wce500\bin\WCEARMV4I.BAT"

then, run cygwin.bat and set:
mount d:/PhoneME /PhoneME
export classpath=.:/cygdrive/d/j2sdk1.4.2_19/jre/lib/rt.jar:/cygdrive/d/j2sdk1.4.2_19/lib/tools.jar
export JVMWorkSpace=/PhoneME/Work/cldc
export JDK_DIR=d:/j2sdk1.4.2_19
export TOOLS_DIR=/cygdrive/d/PhoneME/Work/tools
export VERBOSE_BUILD=true
export USE_VERBOSE_MAKE=true

Next, i run make at cldc/build/wince_arm. The following is part of compile info:

make.exe[1]: Entering directory `d:/PhoneME/Work/cldc/wince_arm/loopgen/app'
echo Generating _build_pch_visCPP.obj ...
Generating _build_pch_visCPP.obj ...
echo '#include "incls/_precompiled.incl"' > \
../generated/_build_pch_visCPP.cpp
cl.exe -D _ARM_ -Id:/PROGRA~1/WINDOW~1/wce500/STANDA~1/Include/Armv4i \
-ID:/PhoneME/Work/cdc/src/share/javavm/include/porting -ID:/PhoneME/Work/cdc/src/share \
-ID:/PhoneME/Work/cdc/src/win32/javavm/include -ID:/PhoneME/Work/cdc/src/win32 -DARM=1 -D _ARM_ -DCROSS_GENERATOR=1 -DEV
C_ASM_QUIRK=1 -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -DWIN32 -D_WINDOWS -D_DEBUG -DAZZERT -W3 -nologo -DH
ARDWARE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=1 -DJVM_RELEASE_VERSION='"1.1"' -DJVM_BUILD_VERSI
ON='"internal"' -DJVM_NAME='"phoneME Feature VM"' -MD -Ox -I"../generated" -I"/PhoneME/Work/cldc/src/vm/share/compiler"
-I"/PhoneME/Work/cldc/src/vm/share/debugger" -I"/PhoneME/Work/cldc/src/vm/share/handles" -I"/PhoneME/Work/cldc/src/vm/sh
are/memory" -I"/PhoneME/Work/cldc/src/vm/share/interpreter" -I"/PhoneME/Work/cldc/src/vm/share/isolate" -I"/PhoneME/Work
/cldc/src/vm/share/natives" -I"/PhoneME/Work/cldc/src/vm/share/reflection" -I"/PhoneME/Work/cldc/src/vm/share/runtime" -
I"/PhoneME/Work/cldc/src/vm/share/utilities" -I"/PhoneME/Work/cldc/src/vm/share/ROM" -I"/PhoneME/Work/cldc/src/vm/share/
verifier" -I"/PhoneME/Work/cldc/src/vm/share/float" -I"/PhoneME/Work/cldc/src/vm/os/utilities" -I"/PhoneME/Work/cldc/src
/vm/share/memoryprofiler" -I"/PhoneME/Work/cldc/src/vm/os/win32" -I"/PhoneME/Work/cldc/src/midp" -I"/PhoneME/Work/cldc/s
rc/vm/cpu/arm" -I"/PhoneME/Work/cldc/src/vm/cpu/c" -I"/PhoneME/Work/cldc/src/vm/cpu/i386" -I"/PhoneME/Work/cldc/src/vm/c
pu/sh" -I"/PhoneME/Work/cldc/src/vm/cpu/thumb" -I"/PhoneME/Work/cldc/src/vm/cpu/thumb2" -I"/PhoneME/Work/cldc/src/anilib
/share" -I"/PhoneME/Work/cldc/src/anilib/win32" -I"/PhoneME/Work/cldc/src/tools/ads_extender" \
-ID:/PhoneME/Work/cdc/src/win32-arm/javavm/include -ID:/PhoneME/Work/cdc/src/win32-arm \
-ID:/PhoneME/Work/cdc/src/win32/javavm/include/ansi -Fp"cldchi.pch" \
-Yc"incls/_precompiled.incl" -c ../generated/_build_pch_visCPP.cpp
_build_pch_visCPP.cpp
echo ' done'
done
cl.exe -DARM=1 -D _ARM_ -DCROSS_GENERATOR=1 -DEVC_ASM_QUIRK=1 -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -DWI
N32 -D_WINDOWS -D_DEBUG -DAZZERT -W3 -nologo -DHARDWARE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=1
-DJVM_RELEASE_VERSION='"1.1"' -DJVM_BUILD_VERSION='"internal"' -DJVM_NAME='"phoneME Feature VM"' -MD -Ox -I"../generat
ed" -I"/PhoneME/Work/cldc/src/vm/share/compiler" -I"/PhoneME/Work/cldc/src/vm/share/debugger" -I"/PhoneME/Work/cldc/src/
vm/share/handles" -I"/PhoneME/Work/cldc/src/vm/share/memory" -I"/PhoneME/Work/cldc/src/vm/share/interpreter" -I"/PhoneME
/Work/cldc/src/vm/share/isolate" -I"/PhoneME/Work/cldc/src/vm/share/natives" -I"/PhoneME/Work/cldc/src/vm/share/reflecti
on" -I"/PhoneME/Work/cldc/src/vm/share/runtime" -I"/PhoneME/Work/cldc/src/vm/share/utilities" -I"/PhoneME/Work/cldc/src/
vm/share/ROM" -I"/PhoneME/Work/cldc/src/vm/share/verifier" -I"/PhoneME/Work/cldc/src/vm/share/float" -I"/PhoneME/Work/cl
dc/src/vm/os/utilities" -I"/PhoneME/Work/cldc/src/vm/share/memoryprofiler" -I"/PhoneME/Work/cldc/src/vm/os/win32" -I"/Ph
oneME/Work/cldc/src/midp" -I"/PhoneME/Work/cldc/src/vm/cpu/arm" -I"/PhoneME/Work/cldc/src/vm/cpu/c" -I"/PhoneME/Work/cld
c/src/vm/cpu/i386" -I"/PhoneME/Work/cldc/src/vm/cpu/sh" -I"/PhoneME/Work/cldc/src/vm/cpu/thumb" -I"/PhoneME/Work/cldc/sr
c/vm/cpu/thumb2" -I"/PhoneME/Work/cldc/src/anilib/share" -I"/PhoneME/Work/cldc/src/anilib/win32" -I"/PhoneME/Work/cldc/s
rc/tools/ads_extender" -Fp"cldchi.pch" -Yu"incls/_precompiled.incl" -c ` echo /PhoneME/Work/cldc/src/vm/share/utilit
ies/AccessFlags.cpp | xargs -n1 cygpath -w`
AccessFlags.cpp
d:\PhoneME\Work\cldc\src\vm\share\utilities\AccessFlags.cpp(71) : error C2065: 'strcat_instead_use_StringCbCatA_or_Strin
gCchCatA' : undeclared identifier
make.exe[1]: *** [AccessFlags.obj] Error 2
make.exe[1]: Leaving directory `d:/PhoneME/Work/cldc/wince_arm/loopgen/app'
D:\cygwin\bin\make.exe: *** [_loopgen] Error 2

Anyone can tell me the reason?Pls help me.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ole00
Offline
Joined: 2008-10-14

Hi,
I searched through phoneMe Mr2, Mr3 and Mr4 sourcecode and I havent found any 'strcat_instead_use_StringCbCatA_or_StringCchCatA' text. If you look in your sourcecode, file: d:\PhoneME\Work\cldc\src\vm\share\utilities\AccessFlags.cpp line 71 there should be something like that: jvm_strcat(buff, prefix);

jvm_strcat is actually a macro (or external function) defined in GlobalDefinitions.hpp. So in your case this macro is unfolded in strcat_instead_use_StringCbCatA_or_StringCchCatA. Search for this string in your sourcecode and if not found then in your compiler environment.

Hope this helps.
Ole

91program
Offline
Joined: 2009-05-19

strcat_instead_use_StringCbCatA_or_StringCchCatA is safe string function that provided by Microsoft in strsafe.h :
#undef strcat
#define strcat strcat_instead_use_StringCbCatA_or_StringCchCatA;

But i include the header file and the directory,strcat_instead_use_StringCbCatA_or_StringCchCatA is also undefied.

Probability,i'm not defined some envionment variables.