Software compiling problem
Crossways
Posts: 8
I'm still debugging the Altimeter setup. I've got some of it working, but with strange resuls. I made some wiring changes and upplugged the board so I could upload again to see if that made any difference. I then got the following ' Error Compiling'.
core.a(main.cpp.o): In function `main':
C:\Users\Dave\Downloads\Arduino Altimeter\arduino-1.0.3-windows\arduino-1.0.3\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\Users\Dave\Downloads\Arduino Altimeter\arduino-1.0.3-windows\arduino-1.0.3\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'
I had something like this happen when I first started out this morning and I had to go back and upzip the files to a new folder even though the program loaded ok yesterday. I don't want to have to keep doing that - any thoughts?
core.a(main.cpp.o): In function `main':
C:\Users\Dave\Downloads\Arduino Altimeter\arduino-1.0.3-windows\arduino-1.0.3\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\Users\Dave\Downloads\Arduino Altimeter\arduino-1.0.3-windows\arduino-1.0.3\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'
I had something like this happen when I first started out this morning and I had to go back and upzip the files to a new folder even though the program loaded ok yesterday. I don't want to have to keep doing that - any thoughts?
Comments
In C, the main() is where a program starts, but Arduino actually hid the main() from the user's text in its programs and adds it as you compile. This is a very non-standard feature of Arduino that creates the impression in the user that they are using something easier than C... when C is rather easy in and of itself.
If main() is missing or cannot be located, nothing runs. I really don't know enough about Arduino to help you. There is plenty to learn in just plain old C.
If you really want to get away from repeated problems --- seek Arduino support in groups that really know Arduino or just write new code and compile AVRs directly in C. Or, get a Propeller and use C with it.
Have you tried the Arduino forums? People tend to go to great lengths to be helpful here, but it may be possible to get better/faster answers to your Arduino questions on the Aduino forum. http://arduino.cc/forum/
Thanks for trying. I'm caught in a loop when I try to get on Arduino forum. It's been a couple of years, and I don't remember what my user name and password were. They'll send a new temp password,but without a user name it would go through. When I tried to just register new, it comes back and says 'one of their user already has that e-mail address :-) I'm trying to reach a human.
As for forgetting logins... we all do from time to time. I have a system where serious passwords are very unique, but when the site is not a critical security problem, I use a very easy to remember phrase that includes the site's name. That way I don't have to wait for the site to help me with a lost password. For instance, you could just add 'Buzz' to a keyword... so the Arduino site might be 'buzzarduino' and other sites would be 'buzz.......'
And if you can't get on the forums or don't get the answers you want.... read the tutorials.