Arduino Forum
>
Using Arduino
>
Installation & Troubleshooting
>
Error Compiling
Print
Go Down
Pages:
[1]
Topic: Error Compiling
(Read 1 time)
previous topic
-
next topic
MechEngr396
Guest
Error Compiling
Mar 21, 2011, 06:37 am
I hooked up an Arduino Duemilanove Atmega328 with Windows XP for the first time. I tried to run the blinking LED code and I am getting the following error:
"Error Compiling"
core.a(main.cpp.o): In function `main':
C:\Documents and Settings\Laptop\My Documents\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:10: undefined reference to `loop'
Can anyone help?
Coding Badly
Global Moderator
Brattain Member
Posts: 22,180
Karma: 1512
[add]
http://code.google.com/p/arduino-tiny/
Re: Error Compiling
#1
Mar 21, 2011, 06:38 am
Has to be an installation problem. Try removing the Arduino software and reinstalling.
CrossRoads
Global Moderator
Unlimited Eagle board sizes available.
Brattain Member
Posts: 43,310
Karma: 1912
[add]
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
http://www.crossroadsfencing.com/BobuinoRev17/
Re: Error Compiling
#2
Mar 21, 2011, 06:41 am
Most likely a typo, missing semi colon, ), or } somewhere.
Post the code using the # shortcut,
or type in
[ code ]
copy your sketch
[ /code ]
(without the spaces between the brackets)
we'll help you find it.
Designing & building electrical circuits for over 25 years. Screw Shield for Mega/Due/Uno, Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at my website.
Coding Badly
Global Moderator
Brattain Member
Posts: 22,180
Karma: 1512
[add]
http://code.google.com/p/arduino-tiny/
Re: Error Compiling
#3
Mar 21, 2011, 06:48 am
Yikes! Sorry about that. Ignore my post and pay attention to the guy above.
CrossRoads
Global Moderator
Unlimited Eagle board sizes available.
Brattain Member
Posts: 43,310
Karma: 1912
[add]
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
http://www.crossroadsfencing.com/BobuinoRev17/
Re: Error Compiling
#4
Mar 21, 2011, 06:55 am
You may end up being right Coding - I just tried messing with the ( )s & { }s in the void loop area on a sketch I had open, got some errors, but none saying Compiler error like the OP showed.
Designing & building electrical circuits for over 25 years. Screw Shield for Mega/Due/Uno, Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at my website.
MechEngr396
Guest
Re: Error Compiling
#5
Mar 21, 2011, 07:28 am
Found the problem
There was a typo when I called the loop.
Thanks
Coding Badly
Global Moderator
Brattain Member
Posts: 22,180
Karma: 1512
[add]
http://code.google.com/p/arduino-tiny/
Re: Error Compiling
#6
Mar 21, 2011, 07:34 am
Uh, you should not need to call
loop
. You may want to post your Sketch for a some guidance.
Or do you mean "when I defined loop"?
Print
Go Up
Pages:
[1]
Loading...