标题:Cannot open include file: 'InfoStream.h': No such file or directory
只看楼主
小冰宝
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2016-10-27
结帖率:0
已结贴  问题点数:1 回复次数:1 
Cannot open include file: 'InfoStream.h': No such file or directory
请帮我看看怎么改,谢谢

程序代码:
#include "InfoStream.h"
#include "charm++.h"
#include "BroadcastMgr.h"
#include "BroadcastClient.h"
#define MIN_DEBUG_LEVEL 3
//define DEBUGM
#include "Debug.h"
BroadcastClient::BroadcastClient(int id) {
    this->id=id;
    BroadcastMgr::Object()->subscribe(*this);
    waitForTag=-1;
    suspended=0;
}
BroadcastClient::~BroadcastClient::() {
    BroadcastMgr::Object()->subscribe(*this);
}

void
BroadcastClient::awaken(int theid,int tag) {
    DebugM(1,"awaken() client id="<<id<<"tag="<<tag<<"\n")
        if (suspended && theid == this->id && tag == waitForTag) {
            CthAwaken(thread);
            suspended = 0; waitForTag = -1;
        }
}
void 
BroadcastClient::suspendFor(int tag) {
   DebugM(1,"suspending() client id ="<<id<<"tag="<<tag<<"\n");
   suspended = 1;
    waitForTag=tag;
    thread = CthSelf();
    CthSuspend();
}

出现
Cannot open include file: 'InfoStream.h': No such file or directory

这种错误
搜索更多相关主题的帖子: include file 
2016-10-27 21:03
StadyC
Rank: 6Rank: 6
等 级:侠之大者
威 望:6
帖 子:182
专家分:430
注 册:2016-10-13
得分:1 
#include "......"这种写法的,麻烦确保这个头文件与.c或者.cpp文件在同一目录下
2016-11-01 17:20



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-470356-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.118291 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved