I am currently having problem with a library that I've written. Basically I want a variable of class edge to contain an instance of the class node.
// ensure this library description is only included once
#ifndef edge_h
#define edge_h
// include types & constants of Wiring core API
//#include "WConstants.h"
#include <node.h>
// library interface description
class edge
{
// user-accessible "public" interface
public:
edge();
//node beg;
//node end;
// library-accessible "private" interface
private:
node beg;
};
#endif
when I add in the "node beg;" line, I get a message saying that "E:\Users\Kevin Li\Desktop\arduino-1.0\libraries\edge/edge.h:25: error: 'node' has not been declared". Does anyone know what the problem is? Thanks.