robomotic / EDFJeelink

Arduino port of EDF Elicpse to Jeelink Arduino IDE
1 stars 0 forks source link

IDE compilation errors (duplicate at JackKelly) #1

Open andygodber opened 12 years ago

andygodber commented 12 years ago

Robo - been trying to get Jack Kelly's version compiled, but problems under IDE 1.0.1, Windows 8. Same issue with yours:

Rfm12b.cpp.o: In function Rfm12b::interrupt_handler()': C:\Users\Andy\AppData\Local\Temp\build8540615672597395472.tmp/Rfm12b.cpp:80: undefined reference tospi::select(bool)' C:\Users\Andy\AppData\Local\Temp\build8540615672597395472.tmp/Rfm12b.cpp:92: undefined reference to spi::select(bool)' C:\Users\Andy\AppData\Local\Temp\build8540615672597395472.tmp/Rfm12b.cpp:101: undefined reference tospi::select(bool)'

Any thoughts?

robomotic commented 12 years ago

Are you using the code from my repository or Jack's code?

On 9 October 2012 17:02, andygodber notifications@github.com wrote:

Robo - been trying to get Jack Kelly's version compiled, but problems under IDE 1.0.1, Windows 8. Same issue with yours:

Rfm12b.cpp.o: In function Rfm12b::interrupt_handler()': C:\Users\Andy\AppData\Local\Temp\build8540615672597395472.tmp/Rfm12b.cpp:80: undefined reference tospi::select(bool)' C:\Users\Andy\AppData\Local\Temp\build8540615672597395472.tmp/Rfm12b.cpp:92: undefined reference to spi::select(bool)' C:\Users\Andy\AppData\Local\Temp\build8540615672597395472.tmp/Rfm12b.cpp:101: undefined reference tospi::select(bool)'

Any thoughts?

— Reply to this email directly or view it on GitHubhttps://github.com/robomotic/EDFJeelink/issues/1.

Dr. Paolo Di Prodi

andygodber commented 12 years ago

Both - have tried Jack's first, who tried an (unsuccessful) fix, and pointed me to yours, where I get the same error.

robomotic commented 12 years ago

Aiaiaiaiaiiiiiii, it seems is not including the spi header file properly hence the inability to find the select method. You will have to wait tomorrow as I have to get access to a Windows machine with Arduino IDE. I will probably do some tests tomorrow. It's probably a simple include issue related to different compilers perhaps

On 9 October 2012 17:11, Andy Godber notifications@github.com wrote:

Both - have tried Jack's first, who tried an (unsuccessful) fix, and pointed me to yours, where I get the same error.

— Reply to this email directly or view it on GitHubhttps://github.com/robomotic/EDFJeelink/issues/1#issuecomment-9267747.

Dr. Paolo Di Prodi

andygodber commented 12 years ago

Thx - have had a quick mess around, but will await your expertise !

JackKelly commented 12 years ago

My hunch is that it's a linker error. Normally this would suggest a problem with the makefile but I have no idea how the Arduino IDE sets about compiling and linking files. This guy suggested a fix (including all the project's .h files in the .ino file) but my attempted fix doesn't seem to have worked.

andygodber commented 12 years ago

Dr Paolo (Robo) is going to have a look tomorrow as well. Will provide an update here.

JackKelly commented 12 years ago

I think I've fixed the problem: https://github.com/JackKelly/rfm_edf_ecomanager/issues/2#commit-ref-bc5f0cc

robomotic commented 12 years ago

It compiles and works on my Windows 7 with Arduino 1.0.1 with a Jeelink at 433 MHz! Cheers.

On 9 October 2012 21:32, Jack Kelly notifications@github.com wrote:

Candidate fix: JackKelly/rfm_edf_ecomanager#2https://github.com/JackKelly/rfm_edf_ecomanager/issues/2#commit-ref-bc5f0cc

— Reply to this email directly or view it on GitHubhttps://github.com/robomotic/EDFJeelink/issues/1#issuecomment-9278361.

Dr. Paolo Di Prodi

JackKelly commented 12 years ago

Excellent news ;) Thanks for testing!