Pages: [1]   Go Down
Author Topic: Error Compiling  (Read 759 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

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?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12932
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Has to be an installation problem.  Try removing the Arduino software and reinstalling.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12932
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yikes!  Sorry about that.  Ignore my post and pay attention to the guy above.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

Found the problem

There was a typo when I called the loop.

Thanks
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12932
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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"?
Logged

Pages: [1]   Go Up
Jump to: