cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Not able to cross-compile curl for ARM uClinux

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 14 Dec 2012 22:53:03 +0100 (CET)

On Fri, 14 Dec 2012, Bernard Evensrud wrote:

> Also tried to compile some other small programs, both C and C++ (adding the
> -lstdc++ parameter of course). Compiles and runs. These programs is compiled
> with make, and do not have any configure scripts.

So save a C source file as main.c that does printf("hello world\n"); in its
main() function. Use only plain C. A fine compiler (in this context) should
then be able to do this:

$ arm-elf-gcc main.c

... and there should be no warnings at all, and there should be an "a.out"
file created that is the executable you can execute on target.

Compilers named "arm-elf-gcc" usually imply that they are more bare-bones and
won't work as simple as that (and the config.log test failure seems to prove
that). Does your gcc?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-14