Pages: [1]   Go Down
Author Topic: error compling  (Read 1159 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, i'm beginner user ( for max msp music controller + arduino uno r3 + sharp sensor IR Sharp GP2Y0A21YK


i purchased arduino uno to day,( for my music oscillator max msp control ) the arduino uno seems to be '' Arduino uno R3(COM3)'' in the Device Manager. And, 2 LED lights on the continuous on arduio uno 1 led orange other led green power.i installed arduion software 1.0 and it seems Serial Port COM3 but my arduino chip name ( ATMEGA328P-PU ) I selected Tools/ Board Arduion uno selected. than i clicked upload that gives the following error

 error compling : core.a(main.cpp.o): In function `main':
C:\Users\Eser\Desktop\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\Users\Eser\Desktop\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'

What should I do
thanks




Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What should I do
You should post your code
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

sorry i very beginner user which code where can i add ?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Post it here.
Copy it from the IDE, then come here and click on the # icon on the editors toolbar. Post your code between the tags that appear [code] [/code]
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

i prepare print screen when i clicked to upload, it's seems to this =
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It may just be my phone's browser, but it looks like you don't have any code in there.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

yes I did not see a code but it gives error
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 239
Posts: 24371
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, without any code, it isn't surprising that the compiler complains it can't find loop or setup.
What are you trying to do?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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

I think I run, because i clicked example analog input than clicked verfy and upload, after, When I raise my hand on sensor,
speeds by slowing down change is the light. is it thrue ?















Logged

NJ, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is your code in a file named sketch_mar29d ? or is that an empty window?
Logged

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

sketch_mar30a
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry i very beginner user which code where can i add ?

You need to put some code in that window. Look, if you buy an oven and turn it on, nothing gets cooked unless you put food into it right? Well, your oven is empty.

Under the File menu -> Examples are lots of examples of code.
Logged

Pages: [1]   Go Up
Jump to: