0
我想在Eclipse中构建arduino代码。我能够很好地构建ArduinoCore。但是在构建应用程序时,我在链接过程中遇到了分段错误。在eclipse中编译arduino时链接器分段错误
Building target: TestAVR.elf
Invoking: AVR C++ Linker
avr-gcc –cref -s -Os -o”TestAVR.elf” ./src/main.o -lArduinoCore -lm -Wl,-Map,TestAVR.map,–cref -mrelax -Wl,–gc-sections -L/home/harsh/workspace/avr/ArduinoCore/Release -mmcu=atmega328p
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make: *** [TestAVR.elf] Error 1
Binutils is the latest version
所有的工具似乎都是最新的。库的构建是否正确或链接器是否存在问题?
如果你的链接器段错误。这是链接器中的一个错误。正确的程序不会段错误。 – 2015-04-04 21:42:47
我该如何解决这个问题? – harsh 2015-04-04 21:43:52
提交错误报告,并希望他们修复它。在此之前,要么改变你的代码,不要触发bug或使用其他工具。 – 2015-04-04 21:49:52