最近换成了最新版库。
发现用G++编译的时候容易出问题。一些基础库的路径好像没有设置对。
我编译一个以前工程的时候出现最基本的iostream找不到,然后又是bit/c++config.h找不到。
makefile里面强制指定路径解决。
但是下面这个问题我得请教了:
开发板没有ftp,因此我想编译lftp。
下载lftp-4.6.5版本。
运行./configure --target=arm-linux-gnueabi --host=arm-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=/home/xiongzechong/ti/ti-processor-sdk-linux-am335x-evm-02.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-linux-gnueabi
返回:
****
checking if c++ compiler works... cross-compiling
checking if c++ compiler can handle dynamic initializers... yes
checking whether g++ supports bool type... no
checking whether g++ understands ANSI scoping rules... no
configure: error: C++ compiler does not understand ANSI scoping rules
这个ANSI特性应该是G++很早以前(2000年前就支持的吧)。
TI这个g++工具怎么没有验证过就发布了。