Skip to main content

LNK2001 error: in MIDP generation

No replies
veyant
Offline
Joined: 2009-09-28

Hi,

I am trying build a PhoneME feature build for Windows. I have successfully completed javacall, PCSL & CLDC compilation steps and currently trying to build MIDP with additional JSRs as JSR75, JSR82, JSR135 & JSR234. however while building MIDP , i am getting following error message:

.. Copying PNG files
... C:/cygwin/home/work/phoneme_feature/build_output/midp/obj/i386/runMidlet.o
runMidlet.c
c:\cygwin\home\work\phoneme_feature\midp\src\ams\example\jams\native\runmidlet.c(105) : warning C4700: uninitialized local variable 'argv' used
... linking C:/cygwin/home/work/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:/cygwin/home/work/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winmm.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsock32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib\cldc_vm.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_escfilenames.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_file.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_memory.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_print.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_string.lib:
Searching C:\cygwin\home\work\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:/cygwin/home/work/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winmm.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsock32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib\cldc_vm.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_escfilenames.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_file.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_memory.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_print.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_string.lib:
Searching C:\cygwin\home\work\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:/cygwin/home/work/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winmm.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsock32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib\cldc_vm.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_escfilenames.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_file.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_memory.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_print.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_string.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_network.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:/cygwin/home/work/phoneme_feature/build_output/javacall/lib/javacall.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\winmm.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\user32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\gdi32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\comdlg32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\wsock32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\midp\obj\i386\libobj.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\LIB\kernel32.lib:
Searching C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib\vfw32.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\cldc\javacall_i386_vc\dist\lib\cldc_vm.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_escfilenames.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_file.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_memory.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_print.lib:
Searching C:\cygwin\home\work\phoneme_feature\build_output\pcsl\javacall_i386\lib\libpcsl_string.lib:
Searching C:\cygwin\home\work\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(lifecycle.obj) : error LNK2019: unresolved external symbol __imp__ShellExecuteExA@4 referenced in function _javacall_lifecycle_platform_request
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldchi_test_Reflect_getBooleanField
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldchi_test_Reflect_getIntField
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldchi_test_Reflect_getStaticBooleanField
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldchi_test_Reflect_getStaticIntField
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldchi_test_Reflect_getInstanceField
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldchi_test_Reflect_getStaticField
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_writeBuf
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_writeByte
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_available0
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_readBuf
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_readByte
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_close0
libobj.lib(ROMImage.o) : error LNK2001: unresolved external symbol _Java_com_sun_cldc_io_j2me_socket_Protocol_open0
C:\cygwin\home\work\phoneme_feature\build_output\midp\bin\i386\runMidlet.exe : fatal error LNK1120: 14 unresolved externals
make: Leaving directory `C:/cygwin/home/work/phoneme_feature/midp/build/javacall'

please help me how to correct these refernce errors. is it possible to avoid linking of these objects?

have anybody generated MIDP successfully. i am using Visual Study 2005 and cyg4me for generating pMEF.