I'm new user with the Netburner Platform. I try to create a class and use the new operator to create my object. The code for the class is:
Code: Select all
#ifndef CRTC_H_
#define CRTC_H_
namespace SAN {
class cRTC {
public:
cRTC();
virtual ~cRTC();
};
Code: Select all
#include "predef.h"
#include <stdio.h>
#include <ctype.h>
#include <startnet.h>
#include <autoupdate.h>
#include <taskmon.h>
#include <NetworkDebug.h>
#include <crtc.h>
//using namespace SAN;
extern "C" {
void UserMain(void * pd);
}
const char * AppName="SAN_0_0";
void UserMain(void * pd) {
InitializeStack();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
StartHTTP();
EnableTaskMonitor();
#ifdef _DEBUG
InitializeNetworkGDB_and_Wait();
#endif
cRTC objRTC = new cRTC();
iprintf("Application started\n");
while (1) {
OSTimeDly(20);
}
}
} /* namespace SAN */
#endif /* CRTC_H_ */
..\main.cpp:29: error: 'cRTC' was not declared in this scope
..\main.cpp:29: error: expected `;' before 'objRTC'
I don't see my error, can you help me?
Thank you
Pat