cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error when cross-compiling for ARM

From: Samuel Díaz García <samueldg_at_arcoscom.com>
Date: Mon, 09 May 2005 12:25:03 +0200

Its appears there are no "explicit" conversion operator.

Without the 112 line code, i don't know what conversion needed.

Its appear to need some code as:
  const_cast< TYPE >( VARIABLE )
  dynamic_cast< TYPE >( VARIABLE )
  etc...

Or in C style cast as:
  ( TYPE ) VARIABLE

Or, some flag in cross-compiler to relax the ANSI C++ restriction.

Hope this helps.

Tim Hatton writes:

> Hi,
> I am currently developing an embedded application for which I would like to use the cURL library.
> The application will run on Linux (kernel 2.4) on an ARM processor (Intel PXA255).
> I am trying to cross-compile cURL but I am running into a compilation error which I hope someone could help me with.
>
> I have written a small configuration script (based on the INSTALL document) which specifies my tool-chain which I am successfully using
> for my application code:
>
> #!/bin/sh
> export AR=/usr/local/arm/2.95.3/bin/arm-linux-ar
> export AS=/usr/local/arm/2.95.3/bin/arm-linux-as
> export LD=/usr/local/arm/2.95.3/bin/arm-linux-ld
> export RANLIB=/usr/local/arm/2.95.3/bin/arm-linux-ranlib
> export CC=/usr/local/arm/2.95.3/bin/arm-linux-g++
> export NM=/usr/local/arm/2.95.3/bin/arm-linux-nm
>
> ./configure --disable-shared --disable-manual --target=arm-linux --host=arm-linux --build=i586-pc-linux-gnu --prefix=/home/Tim/Development/Curl/curl-7.12.3/ArmBin
> [END]
>
> This seems to run OK and gives the following result:
>
> curl version: 7.13.2
> Host setup: arm-unknown-linux-gnu
> Install prefix: /home/Tim/Development/Curl/curl-7.12.3/ArmBin
> Compiler: /usr/local/arm/2.95.3/bin/arm-linux-g++
> SSL support: no (--with-ssl)
> zlib support: no (--with-zlib)
> krb4 support: no (--with-krb4*)
> GSSAPI support: no (--with-gssapi)
> SPNEGO support: no (--with-spnego)
> c-ares support: no (--enable-ares)
> ipv6 support: no (--enable-ipv6)
> IDN support: no (--with-libidn)
> Build libcurl: Shared=no, Static=yes
> Built-in manual: no (--enable-manual)
> Verbose errors: enabled (--disable-verbose)
> SSPI support: no (--enable-sspi)
>
> When I try to do a make however I quickly get the following error:
>
> base64.c: In function `size_t Curl_base64_decode(const char *, unsigned char **)':
> base64.c:112: ANSI C++ forbids implicit conversion from `void *' in assignment
>
> If anyone could shed some light on this problem I'd be very grateful.
> Best regards,
> Tim
>
>
>
>
 

Samuel Díaz Garcí­a
Director Gerente
ArcosCom Wireless, S.L.L.

mailto:samueldg_at_arcoscom.com
http://www.arcoscom.com
móvil: 651 93 72 48
tlfn.: 956 70 13 15
fax: 956 70 34 83
Received on 2005-05-09