Pages: [1]   Go Down
Author Topic: [solved] Error while compiling neural network example code from hobbizine  (Read 386 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody,

I've been trying to learn a bit about neural networks, and I found some code that I'd like to experiment with. Unfortunately, I'm unable to compile it, and I can't figure out what the problem is. If anybody has any ideas, suggestions, or even a solution, I'd really appreciate your input.

I'm using Arduino 1.0 on Linux Mint 12 32-bit.

I tried to post the code directly, but I reached the maximum allowed character count. The code can be found at the bottom of this website: http://robotics.hobbizine.com/arduinoann.html

The error I'm getting is:
Quote
ArduinoANN.cpp: In function ‘void loop()’:
ArduinoANN.cpp:250:1: error: unable to find a register to spill in class ‘POINTER_REGS’
ArduinoANN.cpp:250:1: error: this is the insn:
(insn 449 448 452 38 ArduinoANN.cpp:180 (set (reg:SF 130 [ D.3575 ])
        (mem/s:SF (post_inc:HI (reg:HI 154 [ ivtmp.316 ])) [10 HiddenDelta S4 A8])) 877 {*movsf} (expr_list:REG_INC (reg:HI 154 [ ivtmp.316 ])
        (nil)))
ArduinoANN.cpp:250: confused by earlier errors, bailing out
« Last Edit: November 19, 2012, 10:47:44 pm by DarthNater » Logged

Offline Offline
Edison Member
*
Karma: 35
Posts: 1429
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It compiles without error on 1.0.1 and Windows 7 Pro 64-bit.

Pete
Logged

Where are the Nick Gammons of yesteryear?

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just downloaded Arduino 1.0.2 and now it compiles just fine. I wish I would have thought to check for a newer version before I posted.

Thanks for your help!
Logged

Pages: [1]   Go Up
Jump to: