Author Topic: Compilation Error... Sdk Bug?  (Read 1259 times)

cs_jacky

  • Full Member
  • ***
  • Posts: 143
    • View Profile
    • http://
Compilation Error... Sdk Bug?
« on: February 08, 2005, 08:48:29 pm »
Hi,

I tried to cross-compile SCIM in my Linux. However, I found the following error:
Code: [Select]
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.

Jacky
« Last Edit: February 09, 2005, 02:12:59 am by cs_jacky »

jiangtao

  • Newbie
  • *
  • Posts: 5
    • View Profile
Compilation Error... Sdk Bug?
« Reply #1 on: August 27, 2005, 10:22:30 pm »
???
Did you fix it ?