Skip to main content

LINK : fatal error LNK1561: entry point must be defined

3 replies [Last post]
qqca2006
Offline
Joined: 2010-03-26

Hi,

I met the following link error when trying to build PhoneME on Windows Mobile 6.
...
==============================
starting DEBUG build
==============================
make_3781.exe[2]: Entering directory `C:/phoneme/phoneme_feature_mr4/build_outpu
t/cldc/javacall_wince_arm/target/debug'
generating ../generated/Dependencies ...
reading database: C:/phoneme/phoneme_feature_mr4/cldc/src/vm/includeDB
writing individual include files ... done (228 files.)
writing grand include file

writing dependencies file

make_3781.exe[2]: Leaving directory `C:/phoneme/phoneme_feature_mr4/build_output
/cldc/javacall_wince_arm/target/debug'
make_3781.exe[2]: Entering directory `C:/phoneme/phoneme_feature_mr4/build_outpu
t/cldc/javacall_wince_arm/target/debug'
mkdir -p ../bin
generating ../generated/NativesTable.cpp ...
echo Generating _build_pch_visCPP.obj ...
Generating _build_pch_visCPP.obj ...
echo CPP_INCLUDE_DIRS is -I'../generated' -I'C:/phoneme/phoneme_feature_mr4/cldc
/src/vm/share/compiler' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/debu
gger' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/handles' -I'C:/phoneme
/phoneme_feature_mr4/cldc/src/vm/share/memory' -I'C:/phoneme/phoneme_feature_mr4
/cldc/src/vm/share/interpreter' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/sh
are/isolate' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/natives' -I'C:/
phoneme/phoneme_feature_mr4/cldc/src/vm/share/reflection' -I'C:/phoneme/phoneme_
feature_mr4/cldc/src/vm/share/runtime' -I'C:/phoneme/phoneme_feature_mr4/cldc/sr
c/vm/share/utilities' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/ROM' -
I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/verifier' -I'C:/phoneme/phone
me_feature_mr4/cldc/src/vm/share/float' -I'C:/phoneme/phoneme_feature_mr4/cldc/s
rc/vm/os/utilities' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/memorypr
ofiler' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/os/javacall' -I'C:/phoneme
/phoneme_feature_mr4/cldc/src/midp' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/v
m/cpu/arm' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/c' -I'C:/phoneme/ph
oneme_feature_mr4/cldc/src/vm/cpu/i386' -I'C:/phoneme/phoneme_feature_mr4/cldc/s
rc/vm/cpu/sh' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/thumb' -I'C:/pho
neme/phoneme_feature_mr4/cldc/src/vm/cpu/thumb2' -I'C:/phoneme/phoneme_feature_m
r4/cldc/src/anilib/share' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/anilib/java
call' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/tools/ads_extender' -I'C:/p
honeme/phoneme_feature_mr4/build_output/pcsl/javacall_arm/inc' -I'C:/PROGRA~1/WI
66F8~1/PocketPC/Include/Armv4i'
CPP_INCLUDE_DIRS is -I../generated -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/
share/compiler -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/debugger -IC:/
phoneme/phoneme_feature_mr4/cldc/src/vm/share/handles -IC:/phoneme/phoneme_featu
re_mr4/cldc/src/vm/share/memory -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/sha
re/interpreter -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/isolate -IC:/p
honeme/phoneme_feature_mr4/cldc/src/vm/share/natives -IC:/phoneme/phoneme_featur
e_mr4/cldc/src/vm/share/reflection -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/
share/runtime -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/utilities -IC:/
phoneme/phoneme_feature_mr4/cldc/src/vm/share/ROM -IC:/phoneme/phoneme_feature_m
r4/cldc/src/vm/share/verifier -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/share
/float -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/os/utilities -IC:/phoneme/ph
oneme_feature_mr4/cldc/src/vm/share/memoryprofiler -IC:/phoneme/phoneme_feature_
mr4/cldc/src/vm/os/javacall -IC:/phoneme/phoneme_feature_mr4/cldc/src/midp -IC:/
phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/arm -IC:/phoneme/phoneme_feature_mr4
/cldc/src/vm/cpu/c -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/i386 -IC:/ph
oneme/phoneme_feature_mr4/cldc/src/vm/cpu/sh -IC:/phoneme/phoneme_feature_mr4/cl
dc/src/vm/cpu/thumb -IC:/phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/thumb2 -IC:
/phoneme/phoneme_feature_mr4/cldc/src/anilib/share -IC:/phoneme/phoneme_feature_
mr4/cldc/src/anilib/javacall -IC:/phoneme/phoneme_feature_mr4/cldc/src/tools/ads
_extender -IC:/phoneme/phoneme_feature_mr4/build_output/pcsl/javacall_arm/inc -I
C:/PROGRA~1/WI66F8~1/PocketPC/Include/Armv4i
echo '#include "incls/_precompiled.incl"' > \
../generated/_build_pch_visCPP.cpp
cd C:/phoneme/phoneme_feature_mr4/build_output/cldc/javacall_wince_arm/target/de
bug;C:/PROGRA~1/MID05A~1/vc/ce/bin/x86_arm/cl.exe /X /wd4996 /wd4819 /GS- /Zi /O
d -I'../generated' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/compiler'
-I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/debugger' -I'C:/phoneme/pho
neme_feature_mr4/cldc/src/vm/share/handles' -I'C:/phoneme/phoneme_feature_mr4/cl
dc/src/vm/share/memory' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/inte
rpreter' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/isolate' -I'C:/phon
eme/phoneme_feature_mr4/cldc/src/vm/share/natives' -I'C:/phoneme/phoneme_feature
_mr4/cldc/src/vm/share/reflection' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm
/share/runtime' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/utilities' -
I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/ROM' -I'C:/phoneme/phoneme_fe
ature_mr4/cldc/src/vm/share/verifier' -I'C:/phoneme/phoneme_feature_mr4/cldc/src
/vm/share/float' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/os/utilities' -I'
C:/phoneme/phoneme_feature_mr4/cldc/src/vm/share/memoryprofiler' -I'C:/phoneme/p
honeme_feature_mr4/cldc/src/vm/os/javacall' -I'C:/phoneme/phoneme_feature_mr4/cl
dc/src/midp' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/arm' -I'C:/phonem
e/phoneme_feature_mr4/cldc/src/vm/cpu/c' -I'C:/phoneme/phoneme_feature_mr4/cldc/
src/vm/cpu/i386' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/vm/cpu/sh' -I'C:/pho
neme/phoneme_feature_mr4/cldc/src/vm/cpu/thumb' -I'C:/phoneme/phoneme_feature_mr
4/cldc/src/vm/cpu/thumb2' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/anilib/shar
e' -I'C:/phoneme/phoneme_feature_mr4/cldc/src/anilib/javacall' -I'C:/phoneme/pho
neme_feature_mr4/cldc/src/tools/ads_extender' -I'C:/phoneme/phoneme_feature_m
r4/build_output/pcsl/javacall_arm/inc' -I'C:/PROGRA~1/WI66F8~1/PocketPC/Include/
Armv4i' -DADS_LINUX_HOST=0 -I"C:/phoneme/phoneme_feature_mr4/build_output/javaca
ll/inc" -DARM /D "_DEBUG" -D_CRT_SECURE_NO_WARNINGS -DREQUIRES_JVMCONFIG_H=1 /W3
-D_WIN32_WCE= -D -DARM -D_ARM -D_ARM_ -DUNDER_CE= -DUNICODE -D_UNICODE /nologo
-DHARDWARE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=0 /D "
ROMIZING" -DJVM_RELEASE_VERSION='"1.1"' -DJVM_BUILD_VERSION='"internal"' -DJVM_N
AME='"phoneME Feature VM"' /Fp"cldchi.pch" \
/Yc"incls/_precompiled.incl" /c ../generated/_build_pch_visCPP.cpp
_build_pch_visCPP.cpp
echo ' done'
done
AccessFlags.cpp
LINK : fatal error LNK1561: entry point must be defined
make_3781.exe[2]: *** [AccessFlags.obj] Error 2
make_3781.exe[2]: Leaving directory `C:/phoneme/phoneme_feature_mr4/build_output
/cldc/javacall_wince_arm/target/debug'
C:\cygwin\bin\make_3781.exe[1]: *** [_debug] Error 2
C:\cygwin\bin\make_3781.exe[1]: Leaving directory `C:/phoneme/phoneme_feature_mr
4/cldc/build/javacall_wince_arm'
make: *** [cldc] Error 2
...

I refer to Davy's website @ http://www.cs.kuleuven.be. However, the difference is I am using VS2005's ARM compiler C:\Program Files\Microsoft Visual Studio 8\VC\ce\bin\x86_arm instead of EVC4.

Can anybody help me out?

Thanks,

Mike

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pavelp
Offline
Joined: 2006-09-29

Hi Mike,

What build flags are you using fof CLDC?

Regards,
Pavel

qqca2006
Offline
Joined: 2010-03-26

I am using javacall_wince_arm profile under cldc/build.

Thanks

pavelp
Offline
Joined: 2006-09-29

Hi Mike,

What is your target platform, WM 6.0?

1. Please make sure you don't have traling slashes in the include variables in your environment settings.
2. Another option would be to try to switch off the precompiled headers in the makefiles. That could also help.
3. Echoing the full compilation command could also give additional information.

Regards,
Pavel