Why am I having this error?

Related to the development libraries, released by Curt Binder
Post Reply
paulo.hanashiro
Posts: 18
Joined: Sat Mar 19, 2011 4:23 pm
Location: Sydne/Australia

Why am I having this error?

Post by paulo.hanashiro »

This is my file header:

Code: Select all

// Autogenerated file by RAGen (v1.0.3.79), (05/02/2011 22:20)
// RA_050211_2220.pde
//
// This version designed for v0.8.5 Beta 12 or later
#define VersionMenu
#define wifi
#define RelayExp
#define SaveRelayState


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>

// Timer used to indicate when to dump the parameters
ReefAngel_TimerClass ParamTimer;
// Labels for the web banner
#include <avr/pgmspace.h>
prog_char id_label[] PROGMEM = "phanashiro";
prog_char probe1_label[] PROGMEM = "Water";
prog_char probe2_label[] PROGMEM = "Room";
prog_char probe3_label[] PROGMEM = "Not%20Used";
prog_char relay1_label[] PROGMEM = "Skimmer";
..
..
And found this error:

RA_050211_2220.cpp.o: In function `loop':
C:\Users\PH250023\AppData\Local\Temp\build6451466237859308872.tmp/RA_050211_2220.cpp:94: undefined reference to `ReefAngelClass::WebBanner()'
RA_050211_2220.cpp.o: In function `setup':
C:\Users\PH250023\AppData\Local\Temp\build6451466237859308872.tmp/RA_050211_2220.cpp:62: undefined reference to `ReefAngelClass::LoadWebBanner(int, unsigned char)'

I have no idea about what is causing this error.

Can somebody help me to fix this?

Thanks..
Paulo
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Why am I having this error?

Post by binder »

What version of the libraries are you using?

Those define statements at the top:

Code: Select all

#define VersionMenu
#define wifi
#define RelayExp
#define SaveRelayState
should be inside the ReefAngel_Features.h file and not inside the PDE file. If they are not there, specifically the #define wifi, then those two functions WebBanner() and LoadWebBanner(int, unsigned char) will not be available at compile time.

So please verify that they exist in the ReefAngel_Features.h file (ReefAngel_Features/ReefAngel_Features.h), if they do not exist, add them in and save the file. Then try recompiling.

curt
paulo.hanashiro
Posts: 18
Joined: Sat Mar 19, 2011 4:23 pm
Location: Sydne/Australia

Re: Why am I having this error?

Post by paulo.hanashiro »

Thanks Curt.!!!

It's working now!!!
Post Reply