Pages: [1]   Go Down
Author Topic: problem with scketch upload  (Read 479 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

core.a(main_orig.cpp.o): In function `main':
/home/insippo/arduino-0022/hardware/arduino/cores/arduino/main_orig.cpp:7: undefined reference to `setup'
/home/insippo/arduino-0022/hardware/arduino/cores/arduino/main_orig.cpp:10: undefined reference to `loop'


ubuntu 10.04, arduino duemilanove and eth shield w5100 with sd card. If i connect eth shield to arduino usb connection filed.
if i upload without eth shield : core.a(main_orig.cpp.o): In function `main':
/home/insippo/arduino-0022/hardware/arduino/cores/arduino/main_orig.cpp:7: undefined reference to `setup'
/home/insippo/arduino-0022/hardware/arduino/cores/arduino/main_orig.cpp:10: undefined reference to `loop'  again this error
what the problem ?

thanks
Logged

0
Offline Offline
Shannon Member
****
Karma: 207
Posts: 12200
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the sketch contain  setup() and loop() function definitions?  This error suggests the compiler can't find them.
Logged

[ I won't respond to messages, use the forum please ]

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

if i connect w5100 shield to arduino, arduino disconnect from usb port and arduino ide says:
Error inside Serial.serialEvent()
java.io.IOException: Input/output error in nativeavailable
   at gnu.io.RXTXPort.nativeavailable(Native Method)
   at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
   at processing.app.Serial.serialEvent(Serial.java:215)
   at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
   at gnu.io.RXTXPort.eventLoop(Native Method)
   at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
ubuntu 10.04 and ubuntu 10.10 arduino duemilanove+w5100 with sd card reader
« Last Edit: August 03, 2011, 11:49:10 am by insippo » Logged

Pages: [1]   Go Up
Jump to: