Skip to main content

Error LNK2019 building midp on javacall layer for ARM

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

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

Basically what you see is that some methods are implemented and compiled twice, and
some methods are not implemented. That is why you get those linking errors. I had a look
at the objects involved (sos_network.c and network.c) to see which sources you need. It
appears sos_network.c provides a stub implementation whereas network.c is both available
for win32 emulation and as a stubbed version. I guess you want to use the win32 emulation
version as a starting point.

Regarding the unresolved external symbols, you will have to implement the interfaces for
those methods yourself.

See also my answer in the other thread: http://forums.java.net/jive/thread.jspa?threadID=75337&tstart=0

Davy

junaid88
Offline
Joined: 2010-04-05

hi
I ma facing the same problem i am build jsr 120 in phone me & i got this error.

fi
(cp C:/mr4/phoneme_feature/build_output/midp/generated/jwc_properties.ini C:/mr4
/phoneme_feature/build_output/midp/bin/i386/jwc_properties.ini)
(chmod +w C:/mr4/phoneme_feature/build_output/midp/bin/i386/jwc_properties.ini)

... Copying PNG files
... linking C:/mr4/phoneme_feature/build_output/midp/bin/i386/runMidlet.exe
Searching libraries
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\msvcrt.lib:
Searching C:/mr4/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winm
m.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user
32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi3
2.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comd
lg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsoc
k32.lib:
Searching C:\mr4\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\mr4\phoneme_feature\build_output\javacall\lib\javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shel
l32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\adva
pi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw3
2.lib:
Searching C:\mr4\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib
\cldc_vm.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_escfilenames.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_file.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_memory.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_print.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_string.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_network.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\OLDNAMES.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\msvcrt.lib:
Searching C:/mr4/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winm
m.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user
32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi3
2.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comd
lg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsoc
k32.lib:
Searching C:\mr4\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\mr4\phoneme_feature\build_output\javacall\lib\javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shel
l32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\adva
pi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw3
2.lib:
Searching C:\mr4\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib
\cldc_vm.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_escfilenames.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_file.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_memory.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_print.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_string.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_network.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\OLDNAMES.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\msvcrt.lib:
Searching C:/mr4/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winm
m.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user
32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi3
2.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comd
lg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsoc
k32.lib:
Searching C:\mr4\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\mr4\phoneme_feature\build_output\javacall\lib\javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shel
l32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\adva
pi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw3
2.lib:
Searching C:\mr4\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib
\cldc_vm.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_escfilenames.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_file.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_memory.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_print.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_string.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_network.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\OLDNAMES.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\uuid.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\msvcrt.lib:
Searching C:/mr4/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winm
m.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user
32.lib:

Finished searching libraries
Creating library link_cldc_vm.lib and object link_cldc_vm.exp

Searching libraries
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\msvcrt.lib:
Searching C:/mr4/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winm
m.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user
32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi3
2.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comd
lg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsoc
k32.lib:
Searching C:\mr4\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\mr4\phoneme_feature\build_output\javacall\lib\javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\shel
l32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\adva
pi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw3
2.lib:
Searching C:\mr4\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib
\cldc_vm.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_escfilenames.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_file.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_memory.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_print.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_string.lib:
Searching C:\mr4\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl
_network.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\OLDNAMES.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\uuid.lib:

Finished searching libraries
javacall.lib(jsr120_UDPEmulator.obj) : error LNK2019: unresolved external symbol
_javanotify_incoming_sms referenced in function _process_UDPEmulator_sms_incomi
ng
javacall.lib(jsr120_UDPEmulator.obj) : error LNK2019: unresolved external symbol
_javanotify_incoming_cbs referenced in function _process_UDPEmulator_cbs_incomi
ng
javacall.lib(sms.obj) : error LNK2019: unresolved external symbol _javanotify_sm
s_send_completed referenced in function _javacall_sms_send
C:\mr4\phoneme_feature\build_output\midp\bin\i386\runMidlet.exe : fatal error LN
K1120: 3 unresolved externals
make: *** [C:/mr4/phoneme_feature/build_output/midp/bin/i386/runMidlet.exe] Erro
r 96

please tell me if find the solution

Regards
Junaid

Message was edited by: junaid88