error compiling ?

Hi
I have this board

http://www.ebay.co.uk/itm/ProDiNo-DiNo-II-Arduino-Web-Internet-Lan-Relay-control-1Wire-RS485-OEM-/161267266831?pt=LH_DefaultDomain_0&hash=item258c47350f

and i followed these instructions

now when i press "compile" i get this error

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
core.a(main.cpp.o): In function main': C:\Users\GAMES\Downloads\arduino-1.0.6\hardware\arduino\cores\arduino/main.cpp:40: undefined reference to setup'
C:\Users\GAMES\Downloads\arduino-1.0.6\hardware\arduino\cores\arduino/main.cpp:43: undefined reference to `loop'

what does this mean plz
i have never done this before !!

thank you

It means the IDE is expecting you to provide it with two functions, one called setup, and the other called loop.

But you haven't posted your code.

AWOL:
It means the IDE is expecting you to provide it with two functions, one called setup, and the other called loop.

But you haven't posted your code.

thank's
I do not know where to find my "code"

AWOL:
It means the IDE is expecting you to provide it with two functions, one called setup, and the other called loop.

But you haven't posted your code.

I suspect that's because the OP hasn't written any?

Why haven't you posted the software you're trying to compile?
(Your code)

AWOL:
Why haven't you posted the software you're trying to compile?
(Your code)

is this it ??

// KmpDinoEthernet.h
// Company: KMP Electronics Ltd, Bulgaria
// Web: http://kmpelectronics.eu/
// License: See the GNU General Public License for more details at The GNU General Public License v3.0 - GNU Project - Free Software Foundation
// Supported boards:
// KMP DiNo II NETBOARD V1.0 (Products - developed and produced from us - KMP Electronics Ltd)
// Description:
// Header for KMP Dino Ethernet board.
// Version: 1.0.0
// Date: 17.01.2014
// Author: Plamen Kovandjiev p.kovandiev@kmpelectronics.eu

#ifndef KMPDINOETHERNET_H_INCLUDED
#define KMPDINOETHERNET_H_INCLUDED

#include <Arduino.h>

// Count of inputs and outputs.
#define RELAY_COUNT 4
#define OPTOIN_COUNT 4

// Output pins.
#define Relay1Pin 0x04
#define Relay2Pin 0x0C // 12
#define Relay3Pin 0x0B // 11
#define Relay4Pin 0x07

// Input pins.
#define OptoIn1Pin A2
#define OptoIn2Pin A3
#define OptoIn3Pin A4
#define OptoIn4Pin A5

// 1 Wire pin.
#define OneWirePin 0X05

// Status led pin.
#define StatusLedPin 0x0D // 13

// W5200 pins.
#define W5200PowerPin 0x09
#define W5200ResetPin 0x0A // 10

// RS485 pins.
#define RS485TXControlPin 0x03
#define RS485TXPin 0x01
#define RS485RXPin 0x00
#define RS485Transmit HIGH
#define RS485Receive LOW

// Store relay pins for easy find.
const int RelayPins[RELAY_COUNT] =
{Relay1Pin, Relay2Pin, Relay3Pin, Relay4Pin};

// Relays enum.
enum Relay {
Relay1 = 0x00,
Relay2 = 0x01,
Relay3 = 0x02,
Relay4 = 0x03,
};

// For a simple enumerate.
const Relay RelayList[RELAY_COUNT] =
{Relay1, Relay2, Relay3, Relay4};

// Relay or input status.
enum Status {
NONE = -1,
OFF = 0,
ON = 1
};

// Store input pins for easy find.
const int OptoInPins[OPTOIN_COUNT] =
{OptoIn1Pin, OptoIn2Pin, OptoIn3Pin, OptoIn4Pin};

// Input enum.
enum OptoIn {
OptoIn1 = 0x00,
OptoIn2 = 0x01,
OptoIn3 = 0x02,
OptoIn4 = 0x03,
};

// For a simple enumerate.
const OptoIn OptoInList[RELAY_COUNT] =
{OptoIn1, OptoIn2, OptoIn3, OptoIn4};

///


/// Init Dino board. Set pins, start W5200.
///

void DinoInit();

///


/// Set relay new status.
///

/// Relay number from 0 to RELAY_COUNT - 1
/// New status relay.
void SetRelayStatus(int relayNumber, Status status);

///


/// Set relay new status.
///

/// Relay number from 0 to RELAY_COUNT - 1
/// New status relay.
/// true - On, false = Off.
void SetRelayStatus(int relayNumber, bool status);

///


/// Set relay new status.
///

/// Relay from enum. Relay1, Relay2 ...
/// New status relay.
void SetRelayStatus(Relay relay, Status status);

///


/// Set relay new status.
///

/// Relay from enum. Relay1, Relay2 ...
/// New status relay.
/// true - On, false = Off.
void SetRelayStatus(Relay relay, bool status);

///


/// Set all relays On.
///

void SetAllRelaysOn();

///


/// Set all relays Off.
///

void SetAllRelaysOff();

///


/// Get relay status.
///

/// Relay number from 0 to RELAY_COUNT - 1
/// If result equal - true relay is On, else Off.
/// if relayNumber out of range.
bool GetRelayStatus(int relayNumber);

///


/// Get relay status.
///

/// Relay from enum. Relay1, Relay2 ...
/// If result equal - true relay is On, else Off.
bool GetRelayStatus(Relay relay);

///


/// Get opto input status.
///

/// Opto input number from 0 to OPTOIN_COUNT - 1
/// If result equal - true opto input is On, else Off.
/// if optoInNumber out of range.
bool GetOptoInStatus(int optoInNumber);

///


/// Get opto input status.
///

/// Opto input enum. OptoIn1, OptoIn2...
/// If result equal - true opto input is On, else Off.
bool GetOptoInStatus(OptoIn optoIn);

///


/// Get status status LED.
///

/// If result equal - true LED On, else Off.
bool GetStatusLed();

///


/// Set status LED new status.
///

/// New status LED.
/// true - On, false = Off.
void StatusLed(bool on);

///


/// Set status LED On.
///

void OnStatusLed();

///


/// Set status LED Off.
///

void OffStatusLed();

///


/// Set status LED inverse state.
/// On -> Off, Off -> On.
///

void NotStatusLed();

///


/// Set power UP Ethernet chip W5210.
/// StandBy -> PowerUp.
///

void W5200PowerUp();

///


/// Set Ethernet chip W5210 to Stand by.
/// PowerUp -> StandBy.
///

void W5200PowerStandBy();

///


/// Set Reset Up Ethernet chip W5210.
/// No reset -> Reset.
///

void W5200ResetUp();

///


/// Set release Reset Ethernet chip W5210.
/// Reset -> Start chip.
///

void W5200ResetDown();

///


/// Connect to RS485. With default configuration SERIAL_8N1.
///

/// Boud rate.
/// Values: 75, 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600 and 115200 bit/s.
void RS485Begin(unsigned long boud);

///


/// Connect to RS485.
///

/// Boud rate.
/// Values: 75, 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600 and 115200 bit/s.
/// Configuration - data bits, parity, stop bits.
/// Values: SERIAL_5N1, SERIAL_6N1, SERIAL_7N1, SERIAL_8N1 (the default), SERIAL_5N2, SERIAL_6N2, SERIAL_7N2, SERIAL_8N2, SERIAL_5E1, SERIAL_6E1, SERIAL_7E1, SERIAL_8E1, SERIAL_5E2, SERIAL_6E2, SERIAL_7E2, SERIAL_8E2, SERIAL_5O1, SERIAL_6O1, SERIAL_7O1, SERIAL_8O1, SERIAL_5O2, SERIAL_6O2, SERIAL_7O2, SERIAL_8O2
///
void RS485Begin(unsigned long boud, uint8_t config);

///


/// Close connection to RS485.
///

void RS485End();

///


/// Transmit data to RS485.
///

/// Data to transmit.
/// Transmitted bytes.
size_t RS485Write(uint8_t data);

///


/// Transmit text to RS485.
///

/// Text data to transmit.
/// Transmitted bytes.
size_t RS485Write(char* data);

///


/// Read received data from RS485.
///

/// Received byte.
/// If result = -1 - buffer is empty, no data
/// if result > -1 - valid byte to read.
int RS485Read();

///


/// Read received data from RS485. Reading data with delay and repeating the operation for all data to arrive.
///

/// Wait delay if not available to read byte in milliseconds. Default 10.
/// Repeat time if not read bytes. Default 10.
/// Received byte.
/// If result = -1 - buffer is empty, no data
/// if result > -1 - valid byte to read.
int RS485Read(unsigned long delayWait, uint8_t repeatTime);

///


/// Convert int to string.
///

/// Integer to convert to text.
/// Converted to text integer.
char* IntToChars(int i);

///


/// Convert int to string.
///

/// Float to convert to text.
/// Determines the number of digits after the decimal sign.
/// Converted to text float.
char* FloatToChars(float f, unsigned char precision);

///


/// Convert char to int.
///

/// Char to convert to integer.
/// '0' -> 0, '1' -> 1, ... maximum '9' -> 9.
/// Converted to int char.
int CharToInt(char c);

#endif

I believe this is the softwear

KMPDinoEthernet

And where is setup and loop?
It looks to me like you've only posted the header file.
Please read the clearly labelled posting guidelines and use code tags when posting code.

Assuming you are on Windows. Start here first:

Then worry about your own program.

Hi, can you tell us how much experience you have had with aduino and electronics.
Have you programmed before, in particular in C++ language.

We need to know your level of experience in order to help you with your request for help.

Please read.

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

Thankyou ... Tom...... :slight_smile:

TomGeorge:
Hi, can you tell us how much experience you have had with aduino and electronics.
Have you programmed before, in particular in C++ language.

We need to know your level of experience in order to help you with your request for help.

Please read.

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

Thankyou ... Tom...... :slight_smile:

level of coding experience = Zero !!

I think I have moved foward a little ...
I will take a look at what i have done and post an update

thank's

Ok
i think a little more is talking to me now :-

I now have the board loaded into Arduino or i think i do ,, is see it has come up in the menus and i appear to have compiled something that asks for my ip address ect credentials but then i am getting errors again ,,, i expect these are simply due to my lack of coding experience

thanks

edit before i entered my ip details the square brackets were closed like this
byte _mac[] =
so i put my details between them maybe that was not correct ?

The IDE comes with a load of programming examples.
Can I suggest you work through a few to see how the language works?

Hi, the sketch you posted and tried to load to the arduino is the library file, I checked with the site you linked to.

You need to now write a program in the IDE in C++ that uses the library.

Can I suggest you forget for the moment what you want to do, and with the arduino on its own, do some of the example programs.
This way you will learn how to program the controller and how to track down any bugs that may develop.

You cannot unfortunately jump in and start programming complex projects if you have no programming knowledge.

Tom....... :slight_smile:

TomGeorge:
Hi, the sketch you posted and tried to load to the arduino is the library file, I checked with the site you linked to.

Products - developed and produced from us - KMP Electronics Ltd

You need to now write a program in the IDE in C++ that uses the library.

Can I suggest you forget for the moment what you want to do, and with the arduino on its own, do some of the example programs.
This way you will learn how to program the controller and how to track down any bugs that may develop.

You cannot unfortunately jump in and start programming complex projects if you have no programming knowledge.

Tom....... :slight_smile:

Tom thanks I will BUT i dont think i do have to write a program because i now have " KMPDinoEthernet" loaded in to the arduino library, it now appears in the menu and through the menu i can now select "net relay" which is what i am sopposed to be doing

no offence ment !!!

thanks

Hi, you are now using the sketch to do the job, the other program was the library that is stored in the library directory of your HD.
When you compile your ino sketch, which is what is needed to run in the arduino, the library file will be read and used in the compilation.

However if you want to make any modifications to the sketch, you will need to know about programming the arduino and the language.

Tom.... :slight_smile:

Ok well now i am proper confused

when I purchased this board i was expecting to download some software install it enter my ip address and job done

firstly i have tryed to "ping" http://192.168.1.199/ [this is the address that i am supposed to put in my browser so i can control the board] and from where i am in the UK i get nothing back so am i right in thinking that untill i can get some sort of result from the ping test to http://192.168.1.199/. then there is no point trying to get this thing to work, I mean for all I know it might actually be working it's just that i cant get through to it

cheers

TomGeorge:
When you compile your ino sketch, which is what is needed to run in the arduino, the library file will be read and used in the compilation.

so when i use "arduino" and compile am i supposed to be getting an .exe file as a result ??

so when i use "arduino" and compile am i supposed to be getting an .exe file as a result ?

No. A .exe file needs an operating system to launch it. The linker produces a .hex file that is uploaded to the Arduino.

semajjames:
... and from where i am in the UK i get nothing back ...

What does your location have to do with it? Where is the board? Where are you? Are you on the same LAN?

192.168.x.x is a private IP address. It will not pass through a router (into the public Internet).