Help - Search - Members - Calendar
Full Version: Compilation Error... Sdk Bug?
OESF Portables Forum > Model Specific Forums > Sharp Zaurus > Zaurus - pdaXrom

I tried to cross-compile SCIM in my Linux. However, I found the following error:
armv5tel-cacko-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../src -I../intl -DSCIM_DATADIR=\"/usr/share/scim\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/usr/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib/scim-1.0\" -g -O2 -g -MT scim_backend.lo -MD -MP -MF .deps/scim_backend.Tpo -c scim_backend.cpp  -fPIC -DPIC -o .libs/scim_backend.o
In file included from /opt/arm/3.3.2-vfp/include/c++/3.3.2/bits/stl_algobase.h:67,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/memory:54,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/string:48,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/bits/locale_classes.h:47,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/bits/ios_base.h:47,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/ios:49,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/ostream:45,
                from /opt/arm/3.3.2-vfp/include/c++/3.3.2/iostream:45,
                from scim.h:169,
                from scim_backend.cpp:32:
/opt/arm/3.3.2-vfp/include/c++/3.3.2/cstdlib:103: error: `malloc' not declared
make[2]: *** [scim_backend.lo] Error 1
make[2]: Leaving directory `/home/jacky/downloads/temp/scim-1.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jacky/downloads/temp/scim-1.1.3'
make: *** [all] Error 2

The error was caused by a "using ::malloc:" in the file cstdlib. If I remove this line, I can get the compilation passed. But get a symbol not found error in link (ld).

Any idea to fix this problem? Thanks.

Did you fix it ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.