Francisco Cuesta
2013-02-04 15:37:47 UTC
Hello,
I'm still struggling with autotools plugin in eclipse and some C++ project
I have downloaded.
My goal consists on cross-compilng for an arm processor, so the project is
already configured to work with autotools, but when I try to crosscompile I
have the following issue
*
In file included from /usr/include/c++/4.6/bits/stl_algo.h:61:0,
from /usr/include/c++/4.6/algorithm:63,
from dtntracepath.cpp:17:
/usr/include/c++/4.6/cstdlib:119:11: error: ‘::malloc’ has not been declared
*
I've checked out the configure output of my ibrdtn-tools noticing this
...
checking for stdlib.h... (cached) yes
*checking for GNU libc compatible malloc... no*
checking for memset... yes
...
I know how to fix it through linux terminal through adding the option *export
ac_cv_func_malloc_0_nonnull=yes* , but non through Eclipse or autotools
pluging, since the settings of the project aren't available. May you
enlighten me?
Kind regards,
Thanks in advance,
Francisco
PS: the parameters which I've set in autotools plugin are the following
ones:
-Command: configure CFLAGS="-m32" LDFLAGS="-m32"
CC=/home/t/s/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/arm-mv5sft-linux-gnueabi-gcc
CC=c99
-All options : *--host=arm-mv5sft-linux-gnueabi --build=i686-linux
--target=arm-mv5sft-linux-gnueabi
--with-sysroot=/home/t/s/arm-mv5sft-linux-gnueabi/SW3.2p1/arm-mv5sft-linux-gnueabi/
*
I'm still struggling with autotools plugin in eclipse and some C++ project
I have downloaded.
My goal consists on cross-compilng for an arm processor, so the project is
already configured to work with autotools, but when I try to crosscompile I
have the following issue
*
In file included from /usr/include/c++/4.6/bits/stl_algo.h:61:0,
from /usr/include/c++/4.6/algorithm:63,
from dtntracepath.cpp:17:
/usr/include/c++/4.6/cstdlib:119:11: error: ‘::malloc’ has not been declared
*
I've checked out the configure output of my ibrdtn-tools noticing this
...
checking for stdlib.h... (cached) yes
*checking for GNU libc compatible malloc... no*
checking for memset... yes
...
I know how to fix it through linux terminal through adding the option *export
ac_cv_func_malloc_0_nonnull=yes* , but non through Eclipse or autotools
pluging, since the settings of the project aren't available. May you
enlighten me?
Kind regards,
Thanks in advance,
Francisco
PS: the parameters which I've set in autotools plugin are the following
ones:
-Command: configure CFLAGS="-m32" LDFLAGS="-m32"
CC=/home/t/s/arm-mv5sft-linux-gnueabi/SW3.2p1/bin/arm-mv5sft-linux-gnueabi-gcc
CC=c99
-All options : *--host=arm-mv5sft-linux-gnueabi --build=i686-linux
--target=arm-mv5sft-linux-gnueabi
--with-sysroot=/home/t/s/arm-mv5sft-linux-gnueabi/SW3.2p1/arm-mv5sft-linux-gnueabi/
*