ds-pg网赌软件
| 文章来源:米尔科技 发布日期:2021.1.19 浏览次数:22 次 |
ds-5自带例程 examples/linux_examples.zip 中的 threads 例程默认使用的目标内核是:armv4t,对于新的arm内核来说,一般都是cortex-a系列的,他们基本上都是armv7-a架构,所以这个配置就有点老了。
而如果在 ds-5 中直接把 armv4t 改成 armv7-a,又会提示 error: threads uses vfp register arguments 这样的错误:
那么该怎么解决呢?
从错误提示中我们看出了点原因,其实只要再把
改为:
就可以了。
gnu gcc的参数请参考:
而如果在 ds-5 中直接把 armv4t 改成 armv7-a,又会提示 error: threads uses vfp register arguments 这样的错误:
|
01
02
03
04
05
06
07
08
09
10
11
12
13
|
15:47:33 **** build of configuration default for project threads ****
make -f makeboth all
make[1]: entering directory `d:/saves/ds-5/threads'
arm-linux-gnueabihf-gcc -c -g -o0 -fno-omit-frame-pointer -marm -march=armv7-a -mfloat-abi=soft -pthread threads.c -o threads.o
arm-linux-gnueabihf-gcc threads.o -marm -march=armv7-a -mfloat-abi=soft -pthread -o threads
d:/program files/ds-5 v5.21.0/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.exe: error: threads uses vfp register arguments, threads.o does not
d:/program files/ds-5 v5.21.0/sw/gcc/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.exe: failed to merge target specific data of file threads.o
collect2.exe: error: ld returned 1 exit status
make[1]: *** [threads] error 1
make[1]: leaving directory `d:/saves/ds-5/threads'
make: *** [all] error 2
15:47:34 build finished (took 673ms)
|
那么该怎么解决呢?
从错误提示中我们看出了点原因,其实只要再把
|
1
|
-mfloat-abi=soft
|
改为:
|
1
|
-mfpu=vfp
|
就可以了。
gnu gcc的参数请参考:
本文来自pg网赌软件-pg电子娱乐试玩科技,原文地址:
http://www.myir-tech.com/resource/592.asp,转载请注明出处。
pg网赌软件的产品中心
服务与支持
关于米尔
联系pg网赌软件
关注pg电子娱乐试玩


