Page 1 of 1

Error Compiling in RAGen

Posted: Sat Dec 31, 2011 9:25 am
by Nikkwins
I've installed RAGen, and successfully uploaded a PDE and memory file. I've since gone back into RAGen and created a PDE and memory file to meet my tanks needs, and it's giving me this error when compiling:

ReefAngel\ReefAngel.cpp.o: In function `ReefAngelClass::ExitMenu()':
C:\Users\Nick\Documents\Arduino\libraries\ReefAngel/ReefAngel.cpp:1805: undefined reference to `DrawCustomGraph()'
ReefAngel\ReefAngel.cpp.o: In function `ReefAngelClass::ShowInterface()':
C:\Users\Nick\Documents\Arduino\libraries\ReefAngel/ReefAngel.cpp:1394: undefined reference to `DrawCustomMain()'
C:\Users\Nick\Documents\Arduino\libraries\ReefAngel/ReefAngel.cpp:1450: undefined reference to `DrawCustomGraph()'

I'm have zero programming experience, the best I can figure is there is something missing in my libraries? I currently have the development libraries version 0.8.5.19 installed. Any assistance would be appreciated.

Re: Error Compiling in RAGen

Posted: Sat Dec 31, 2011 9:31 am
by Nikkwins
Here is my PDE :

// Autogenerated file by RAGen (v1.1.0.126), (12/31/2011 11:05)
// RA_123111_1105.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File:
#define DisplayImages
#define WavemakerSetup
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define DirectTempSensor
#define wifi
#define RelayExp
#define SingleATOSetup
#define StandardLightSetup
#define ENABLE_ATO_LOGGING
#define ENABLE_EXCEED_FLAGS
*/


#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>


void setup()
{
ReefAngel.Init(); //Initialize controller

ReefAngel.FeedingModePorts = B00011000;
ReefAngel.WaterChangePorts = B00011000;

// Ports that are always on
ReefAngel.Relay.On(Port2);
ReefAngel.Relay.On(Port7);
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.SingleATOLow(Port1);
ReefAngel.StandardLights(Port3);
ReefAngel.StandardHeater(Port4);
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);

ReefAngel.ShowInterface();
}

Re: Error Compiling in RAGen

Posted: Sat Dec 31, 2011 9:38 am
by binder
Double check your ReefAngel_Features.h file and make sure you do not have this in it:

Code: Select all

#define CUSTOM_MAIN
If you have that line, delete it.

With that line there, the libraries are trying to find the DrawCustomMain and DrawCustomGraph functions which do not exist in your PDE file.

curt

Re: Error Compiling in RAGen

Posted: Sat Dec 31, 2011 12:08 pm
by Nikkwins
That worked thanks.