Skip to main content

error LNK2005 and LNK2019 when build MIDP on javacall layer for ARM

2 replies [Last post]
ainhoa
Offline
Joined: 2010-02-09

Hello,
I´m getting these errors: LNK2005 and LNK2019 when trying to link runmidlet.exe during midp build.

... linking C:/phonemef/output/midp/bin/arm/runMidlet.exe
...LD_FLAGS: /nologo /MAP /incremental:no /verbose:LIB /ERRORREPORT:PROMPT /STACK:65536,4096 /MANIFEST:NO /nodefaultlib:oldnames.lib /nodefaultlib:secchk.lib /
libpath:/implementation/wince_comm/drm /opt:REF /OPT:ICF /subsystem:windowsce,3.00 /MACHINE:THUMB -libpath:C:/phonemef/output/pcsl/javacall_arm/lib /incremental /MAP /MAPINFO:LINES /MAPINFO:EXPORTS /SUBSYSTEM:windowsce,4.00 /LIBPATH:C:/PR
OGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i /LIBPATH:C:/PROGRA~1/MICROS~2/vc/ce/lib /LIBPATH:C:/PROGRA~1/MICROS~2/VC/ce/atlmfc/lib /OPT:REF coredll.lib corel
ibc.lib aygshell.lib Ws2.lib ole32.lib /LIBPATH:C:/PROGRA~1/MICROS~2/vc/ce/lib/armv4i
...LINKER_OUTPUT: -out:
...CALL: C:\phonemef\output\midp\bin\arm\runMidlet.exe
C:\phonemef\output\midp\obj\arm\runMidlet.o
C:\phonemef\output\midp\obj\arm\libobj.lib
C:\phonemef\output\javacall\lib\javacall.lib
commctrl.lib
cellcore.lib
aygshell.lib
Ws2.lib
ddraw.lib
Mmtimer.lib
note_prj.lib
dmoguids.lib
strmbase.lib
crypt32.lib
strmiids.lib
wap.lib
C:\phonemef\output\cldc\javacall_wince_arm\dist\lib\cldc_vm.lib
libpcsl_escfilenames.lib
libpcsl_file.lib
libpcsl_memory.lib
libpcsl_print.lib
libpcsl_string.lib
libpcsl_network.lib
LINK : warning LNK4224: /MAPINFO:LINES is no longer supported; ignored
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification

Searching libraries
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\coredll.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\corelibc.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\aygshell.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\Ws2.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\ole32.lib:
Searching C:\phonemef\output\midp\obj\arm\libobj.lib:
Searching C:\phonemef\output\javacall\lib\javacall.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\commctrl.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\cellcore.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\ddraw.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\Mmtimer.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\note_prj.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\dmoguids.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\strmbase.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\crypt32.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\strmiids.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\wap.lib:
Searching C:\phonemef\output\cldc\javacall_wince_arm\dist\lib\cldc_vm.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_escfilenames.lib:

Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_file.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_memory.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_print.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_string.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_network.lib:
Searching C:/PROGRA~1/MICROS~2/vc/ce/lib/armv4i\LIBCMT.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\coredll.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\corelibc.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\aygshell.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\Ws2.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\ole32.lib:
Searching C:\phonemef\output\midp\obj\arm\libobj.lib:
Searching C:\phonemef\output\javacall\lib\javacall.lib:
javacall.lib(sos_network.obj) : error LNK2005: javacall_network_gethostbyname_st
art already defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_network_gethostbyname_fi
nish already defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_socket_getlocaladdr alre
ady defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_socket_getremoteaddr alr
eady defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_socket_getlocalport alre
ady defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_socket_getremoteport alr
eady defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_network_error already de
fined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_network_getsockopt alrea
dy defined in javacall.lib(network.obj)
javacall.lib(sos_network.obj) : error LNK2005: javacall_network_setsockopt alrea
dy defined in javacall.lib(network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_open_start already def
ined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_open_finish already de
fined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_read_start already def
ined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_read_finish already de
fined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_write_start already de
fined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_write_finish already d
efined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_close_start already de
fined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_close_finish already d
efined in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_available already defi
ned in javacall.lib(sos_network.obj)
javacall.lib(socket.obj) : error LNK2005: javacall_socket_shutdown_output alread
y defined in javacall.lib(sos_network.obj)

Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\commctrl.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\cellcore.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\ddraw.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\Mmtimer.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\note_prj.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\dmoguids.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\strmbase.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\crypt32.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\strmiids.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\wap.lib:
Searching C:\phonemef\output\cldc\javacall_wince_arm\dist\lib\cldc_vm.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_escfilenames.lib:

Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_file.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_memory.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_print.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_string.lib:
Searching C:/phonemef/output/pcsl/javacall_arm/lib\libpcsl_network.lib:
Searching C:/PROGRA~1/MICROS~2/vc/ce/lib/armv4i\LIBCMT.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\coredll.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\corelibc.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\aygshell.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\Ws2.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\ole32.lib:
Searching C:\phonemef\output\midp\obj\arm\libobj.lib:
Searching C:\phonemef\output\javacall\lib\javacall.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\commctrl.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\cellcore.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\ddraw.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\Mmtimer.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\note_prj.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\dmoguids.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\strmbase.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\crypt32.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\strmiids.lib:
Searching C:/PROGRA~1/WIEB7A~1/wce500/WINDOW~1.0PO/lib/armv4i\wap.lib:

Finished searching libraries
corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol WinMain r
eferenced in function WinMainCRTStartup
libobj.lib(midpMalloc.o) : error LNK2019: unresolved external symbol javacall_ca
lloc referenced in function midpCallocImpl
libobj.lib(midpMalloc.o) : error LNK2019: unresolved external symbol javacall_st
rdup referenced in function midpStrdupImpl

C:\phonemef\output\midp\bin\arm\runMidlet.exe : fatal error LNK1120: 3 unresolve
d externals

make: *** [C:/phonemef/output/midp/bin/arm/runMidlet.exe] Error 96
make: Leaving directory `C:/phonemef/midp/build/javacall'

Anybody can help me please???

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03

I have noticed you use the javacall porting layer for your WinCE builds. In my own builds
for Windows Mobile and WinCE, I do not compile pcsl and cldc with javacall support (because
many javacall APIs do not have a proper WinCE implementation).

Perhaps you could try to build without it. The only disadvantage is that some JSRs really
depend on having javacall present, so YMMV.

Davy

junaid88
Offline
Joined: 2010-04-05

hi
i am facing the same error while building on the jsr 120 .If anyone have found solution please tell me
Regards
Junaid