IP addresses is giving errror

i am getting the following error in my code

In file included from pro.cpp:7:
C:\Documents and Settings\home\Desktop\arduino-0022\libraries\EthernetUdp/EthernetUdp.h:44: error: expected class-name before '{' token
C:\Documents and Settings\home\Desktop\arduino-0022\libraries\EthernetUdp/EthernetUdp.h:48: error: 'IPAddress' does not name a type
C:\Documents and Settings\home\Desktop\arduino-0022\libraries\EthernetUdp/EthernetUdp.h:62: error: 'IPAddress' has not been declared
C:\Documents and Settings\home\Desktop\arduino-0022\libraries\EthernetUdp/EthernetUdp.h:74: error: type 'Print' is not a base type for type 'EthernetUDP'
C:\Documents and Settings\home\Desktop\arduino-0022\libraries\EthernetUdp/EthernetUdp.h:94: error: 'IPAddress' does not name a type
PRO:27: error: 'IPAddress' does not name a type
pro.cpp: In function 'void setup()':
PRO:44: error: 'ip' was not declared in this scope
pro.cpp: In function 'void loop()':
PRO:49: error: 'car' was not declared in this scope
PRO:50: error: 'gps' was not declared in this scope
PRO:7: error: too few arguments to function 'void steering(char)'
PRO:51: error: at this point in file
PRO:52: error: 'ethernetsheild' was not declared in this scope
pro.cpp: At global scope:
CAR:1: error: expected unqualified-id before '{' token

do me a favour

its also gives me the error when i am running a simple code:

#include <SPI.h> 
#include <Ethernet.h>
#include <EthernetUdp.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 1, 177);

unsigned int localPort = 8888; // local port to listen on

// An EthernetUDP instance to let us send and receive packets over UDP
EthernetUDP Udp;

char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,

void setup() {
// start the Ethernet and UDP:
Ethernet.begin(mac,ip);
Udp.begin(localPort);

}

void loop() {

int packetSize = Udp.parsePacket();
if(packetSize)
{

// read the packet into packetBufffer
Udp.read(packetBuffer,UDP_TX_PACKET_MAX_SIZE);
Serial.println("Contents:");
Serial.println(packetBuffer);
if(packetBuffer=="forward")
{
	Serial.print("Forward Rece");
	digitalWrite(pin. HIGH)l
}

if(packetBuffer=="backward")
{
	Serial.print("backward Rece");
	digitalWrite(pin. HIGH)
}
if(packetBuffer="right")
{
        Serial.print("right");
        digitalWrite();
}
if(packetBuffer="Left")
{
        Serial.print("left");
        digitalWrite();
}
}
}

here is the error

ethernet.cpp:3:25: error: EthernetUdp.h: No such file or directory
ethernet:7: error: 'IPAddress' does not name a type
ethernet:12: error: 'EthernetUDP' does not name a type
ethernet:14: error: 'UDP_TX_PACKET_MAX_SIZE' was not declared in this scope
ethernet.cpp: In function 'void setup()':
ethernet:18: error: 'ip' was not declared in this scope
ethernet:19: error: 'Udp' was not declared in this scope
ethernet.cpp: In function 'void loop()':
ethernet:25: error: 'Udp' was not declared in this scope
ethernet:30: error: 'packetBuffer' was not declared in this scope
ethernet:30: error: 'UDP_TX_PACKET_MAX_SIZE' was not declared in this scope
ethernet:36: error: 'pin' was not declared in this scope
ethernet:36: error: expected unqualified-id before numeric constant
ethernet:36: error: expected ;' before 'l' ethernet:42: error: 'pin' was not declared in this scope ethernet:42: error: expected unqualified-id before numeric constant ethernet:43: error: expected ;' before '}' token
H:\Project_Fina\arduino-0022\arduino-0022\hardware\arduino\cores\arduino/wiring.h:110: error: too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
ethernet:47: error: at this point in file
H:\Project_Fina\arduino-0022\arduino-0022\hardware\arduino\cores\arduino/wiring.h:110: error: too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
ethernet:52: error: at this point in file

ethernet.cpp:3:25: error: EthernetUdp.h: No such file or directory

It rarely gets clearer than that.

i dont find such library on internet if you have link kindly send it to me

Is Google broken again?

char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
...
if(packetBuffer=="forward")

That's not gonna happen.
Better put the coffee pot on, it's going to be another long one.

dont Know but i am not finding on it do me a favour please

http://bit.ly/zi5E8G

send me the link here are the links that i found out out

http://code.google.com/p/arduino/source/browse/trunk/libraries/Ethernet/Udp.h?r=1094
http://code.google.com/p/arduino/issues/attachmentText?id=669&aid=6690001000&name=EthernetUdp.h&token=ed17839fafdb14485f9d69c2314e3a11

but they are not getting download

but they are not getting download

Try contacting your ISP.

Just a few observations, to save time later: Serial.println("Contents:");
Do you see a Serial.begin? Me neither.

digitalWrite(pin. HIGH)l

Do you set the pin (which isn't declared) to be an OUTPUT? Ever see a decimal point or letter 'l' used like that?

 digitalWrite();

Where's the prototype for that one?

See also string handling comments in reply #4.

dear i have copy paste the data into notepad editor and saved the library with .h extension but it still gives me error

ethernet:7: error: 'IPAddress' does not name a type
ethernet:12: error: 'EthernetUDP' does not name a type
ethernet.cpp: In function 'void setup()':
ethernet:18: error: 'ip' was not declared in this scope
ethernet.cpp: In function 'void loop()':
ethernet:25: error: 'class UdpClass' has no member named 'parsePacket'
ethernet:30: error: 'class UdpClass' has no member named 'read'
ethernet:36: error: 'pin' was not declared in this scope
ethernet:36: error: expected unqualified-id before numeric constant
ethernet:36: error: expected ;' before 'l' ethernet:42: error: 'pin' was not declared in this scope ethernet:42: error: expected unqualified-id before numeric constant ethernet:43: error: expected ;' before '}' token
ethernet:44: error: incompatible types in assignment of 'const char [6]' to 'char [24]'
H:\Project_Fina\arduino-0022\arduino-0022\hardware\arduino\cores\arduino/wiring.h:110: error: too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
ethernet:47: error: at this point in file
ethernet:49: error: incompatible types in assignment of 'const char [5]' to 'char [24]'
H:\Project_Fina\arduino-0022\arduino-0022\hardware\arduino\cores\arduino/wiring.h:110: error: too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
ethernet:52: error: at this point in file

Did you restart the IDE?

Nop

issue is solved with arduino 1.0 mega but not arduino 022 why

cutebuddy6:
its also gives me the error when i am running a simple code:

...

char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
...
if(packetBuffer=="forward")
{
Serial.print("Forward Rece");
digitalWrite(pin. HIGH)l
}

if(packetBuffer=="backward")
{
Serial.print("backward Rece");
digitalWrite(pin. HIGH)
}
...

This compiled OK under version 1.0 of the IDE did it? Strange.

Before you make posts begging for help, perhaps learn the absolute basics.

	digitalWrite(pin. HIGH)

Arguments are separated by commas, not periods. Statements are terminated with a semicolon.

You can't compare strings like that. You are comparing the address of the string and not the contents of the string.

Slow down and work things out for yourself, we are not here to interpret simple compiler error messages for you and tell you exactly what to type.

Oh i am realy sorry for that but i forget it

i am getting the following error when i run my code why?

In file included from pro.cpp:2:
C:\Users\ENZEE\Downloads\arduino-1.0-windows\arduino-1.0\libraries\NMEA/nmea.h:24:24: error: WConstants.h: No such file or directory
In file included from pro.cpp:4:
C:\Users\ENZEE\Downloads\arduino-1.0-windows\arduino-1.0\libraries\NewSoftSerial/NewSoftSerial.h:71: error: conflicting return type specified for 'virtual void NewSoftSerial::write(uint8_t)'
C:\Users\ENZEE\Downloads\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'

i am getting the following error in compiling my code

[quote]In file included from pro.cpp:2:
C:\Users\ENZEE\Downloads\arduino-1.0-windows\arduino-1.0\libraries\NMEA/nmea.h:24:24: error: WConstants.h: No such file or directory
In file included from pro.cpp:4:
C:\Users\ENZEE\Downloads\arduino-1.0-windows\arduino-1.0\libraries\NewSoftSerial/NewSoftSerial.h:71: error: conflicting return type specified for 'virtual void NewSoftSerial::write(uint8_t)'
C:\Users\ENZEE\Downloads\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'[/quote]

We know. It's in your other thread.

http://arduino.cc/forum/index.php/topic,92394.0.html

cutebuddy6:
i am getting the following error in compiling my code
...

Multiple threads + personal messages. We are throwing all the big guns at this problem, all except ... sitting down calmly and trying to work it out for ourself.

Multiple threads + personal messages.

You can block PMs from individual members if you wish, in your preferences.
I have.

Moderators can deal with multiple posts.