我已经为Windows x64安装了Cygwin。 安装完成后,我注意到系统可以找到所有内容。
在控制台中:
C:\Users\Tomás>gcc --version
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Users\Tomás>g++ --version
g++ (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Users\Tomás>make --version
GNU Make 4.0
Built for x86_64-pc-cygwin
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
C:\Users\Tomás>gdb --version
GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
然后,当我在eclipse中创建项目时,当您尝试编译它时,我收到此错误消息:
我该如何解决?
谢谢!
答案 0 :(得分:1)
您必须设置编译器位置。 您可以在Project-&gt; Properties-&gt; C / C ++ Build - &gt;中执行此操作。设置 - &gt;工具链标签。
例如,我使用CodeSourcery Lite版本的编译器。 所以,我选择&#34; C:\ Program Files(x86)\ CodeSourcery \ Sourcery_CodeBench_Lite_for_ARM_EABI \ arm-none-eabi&#34;在全球路径领域。
见图片:https://yadi.sk/i/Zx_KkMs5X7TKg
另外,你在Node.cpp文件中有些麻烦...... 但我需要看到这个文件说出错误的原因......
祝你好运!
瓦迪姆