如何编译GCC交叉编译器?

时间:2017-12-27 01:50:14

标签: c gcc gmp mpfr mpc

我正在尝试为i586-elf编译GCC,但每次运行' configure'使用此命令的文件:

./configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable
languages=c --without-headers --with-gmp=$PREFIX --with-mpc=$PREFIX
--with-mpfr=$PREFIX

然后它给了我这个错误:

checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... no.

虽然我已经指定了gmp,mpfr和mpc的位置。我有他们的最新版本。有什么我想念的吗?

1 个答案:

答案 0 :(得分:2)

除非您真的关心特定的gmp / mpfr等版本,否则我建议您从顶级GCC源目录运行 protected void Page_Load(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["MBSDB"].ConnectionString); try { conn.Open(); string query="SELECT * FROM tblBook"; using (SqlCommand mycmd = new SqlCommand(query, conn)) { myGrid.DataSource = mycmd.ExecuteReader(); myGrid.DataBind(); } string query2 = "SELECT count(title) FROM tblBook"; using (SqlCommand mycmd2 = new SqlCommand(query2, conn)) { int count = (int)mycmd2.ExecuteScalar(); myCount.Text = count.ToString(); } } catch { Exception(e); } finally { conn.Close(); } } 脚本,然后省略contrib/download_prerequisites你的配置行。 --with-gmp=$PREFIX --with-mpc=$PREFIX --with-mpfr=$PREFIX脚本将下载并解压缩您的GCC版本所需的库的正确版本,并在正确的位置创建正确的符号链接