Skip to main content

WinCE 5.0: Problems linking CLDC with PCSL using eVC++ 4.0

No replies
randomaniac777
Offline
Joined: 2008-11-11
Points: 0

I've applied Davy's patches to CLDC and PCSL from http://www.cs.kuleuven.be/~davy/phoneme/feature.htm. I am able to build CLDC successfully without PCSL. But when I try and build CLDC with ENABLE_PCSL=true I get the following linker errors:

...
Searching c:/cyg4me_sun/Win32VMBuildScripts/wince/output/pcsl/wince_arm/lib/libpcsl_memory.lib:
Searching c:/cyg4me_sun/Win32VMBuildScripts/wince/output/pcsl/wince_arm/lib/libpcsl_print.lib:
Searching c:/cyg4me_sun/Win32VMBuildScripts/wince/output/pcsl/wince_arm/lib/libpcsl_network.lib:
Searching c:/cyg4me_sun/Win32VMBuildScripts/wince/output/pcsl/wince_arm/lib/libpcsl_string.lib:
Searching c:/cyg4me_sun/Win32VMBuildScripts/wince/output/pcsl/wince_arm/lib/libpcsl_file.lib:
...
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_close referenced in function OsFile_open
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_string_free referenced in function OsFile_open
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_open referenced in function OsFile_open
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_string_convert_from_utf16 referenced in function OsFile_open
cldc_vm_g.lib(OsFile.obj) : error LNK2001: unresolved external symbol PCSL_STRING_NULL
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_read referenced in function OsFile_read
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_write referenced in function OsFile_write
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_sizeofopenfile referenced in function OsFile_length
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_exist referenced in function OsFile_exists
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_seek referenced in function OsFile_seek
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_rename referenced in function OsFile_rename
cldc_vm_g.lib(OsFile.obj) : error LNK2019: unresolved external symbol pcsl_file_unlink referenced in function OsFile_remove
../bin/cldc_vm_g.exe : fatal error LNK1120: 17 unresolved externals

My setup:

WinXP SP2
eMbedded Visual C++ 4.0 SP4
Visual C++ 2005 Express edition
JDK1.4.2

I'm thinking it occurs because Davy's PCSL patches set PCSL to build for ARM against the VC compiler (rather than the eVC compiler, which would make more sense).

Does anybody else get this error?