主题:紧急求救
这是头文件中的一段:
………
/** Main class for DTN */
class DTNAgent : public Agent {
public:
DTNAgent();
virtual int command(int argc, const char*const* argv);
virtual void recv(Packet*, Handler*);
Packet* DTNAgent :: newpacket(int size);
void sendPacket(Packet* pkt);
virtual void sendmsg(int nbytes, const char* flags=NULL);
int custodian(){return custodian_;} /**< Accepting custody. */
double retransmit(){return retransmit_;} /**< Retransmission interval. */
private:
Routes* routes_; /**< The routes list. */
BundleManager* bm_; /**< The bundlemanager. */
Registration* reg_; /**< Registraton handler. */
char* src_; /**< Application bundle source endpoint id. */
char* dest_; /**< Application bundle destination endpoint id. */
char* rpt_to_; /**< Application bundle report to endpoint id. */
char* cos_; /**< Application bundle priority. */
char* options_; /**< Application bundle options. */
char* lifespan_; /**< Application bundle lifespan. */
int custodian_; /**< Accepting custody. */
double retransmit_; /**< Retransmission interval. */
};
……
在相应的.cc文件编译的时候,这部分代码报错:
……
[color=FF0000]DTNAgent :: DTNAgent() : Agent(PT_DTNBUNDLE), src_(NULL), dest_(NULL), rpt_to_(NULL), cos_(NULL), options_(NULL), lifespan_(NULL)
……[/color]说是找不到PT_DTNBUNDLE,哪位仁兄能指点一下啊
………
/** Main class for DTN */
class DTNAgent : public Agent {
public:
DTNAgent();
virtual int command(int argc, const char*const* argv);
virtual void recv(Packet*, Handler*);
Packet* DTNAgent :: newpacket(int size);
void sendPacket(Packet* pkt);
virtual void sendmsg(int nbytes, const char* flags=NULL);
int custodian(){return custodian_;} /**< Accepting custody. */
double retransmit(){return retransmit_;} /**< Retransmission interval. */
private:
Routes* routes_; /**< The routes list. */
BundleManager* bm_; /**< The bundlemanager. */
Registration* reg_; /**< Registraton handler. */
char* src_; /**< Application bundle source endpoint id. */
char* dest_; /**< Application bundle destination endpoint id. */
char* rpt_to_; /**< Application bundle report to endpoint id. */
char* cos_; /**< Application bundle priority. */
char* options_; /**< Application bundle options. */
char* lifespan_; /**< Application bundle lifespan. */
int custodian_; /**< Accepting custody. */
double retransmit_; /**< Retransmission interval. */
};
……
在相应的.cc文件编译的时候,这部分代码报错:
……
[color=FF0000]DTNAgent :: DTNAgent() : Agent(PT_DTNBUNDLE), src_(NULL), dest_(NULL), rpt_to_(NULL), cos_(NULL), options_(NULL), lifespan_(NULL)
……[/color]说是找不到PT_DTNBUNDLE,哪位仁兄能指点一下啊