在Mac上使用XCODE设置cocos2d-x

时间:2017-01-20 01:43:48

标签: c++ xcode cocos2d-x-3.0

我试图在命令行中设置cocos2d-x并且我一直在运行-bash:export:void ParaStochSimulator::first_reacsimulator() { if (mnprocess_id==0) { broad_cast(m_anCurrentMarking); } } void ParaStochSimulator::broad_cast(long j) { std::cout << "i'm broad_casting" << std::endl; double val; //Get manipulated places VectorLong l_nMinplacesPos = (*m_pcTransitionsInfo)[j]->GetManipulatedPlaces(); double* l_anMarking=new double [l_nMinplacesPos.size()]; //l_anMarking.clear(); //double var = l_nMinplacesPos.size(); int i = 0; for (auto lnpos : l_nMinplacesPos) { val = m_anCurrentMarking[lnpos]; l_anMarking[i++] = val; } std::vector<VectorLong>::iterator it; for (it = l_anMarking.begin(); it < l_anMarking.end(); it++) //here { std::cout << *it << std::endl; } MPI_Bcast(&l_anMarking, sizeof l_nMinplacesPos, MPI_DOUBLE, 0, MPI_COMM_WORLD); delete[] l_anMarking; } int main() { ((spsim::ParaStochSimulator*)l_pcStochSolver)->first_reacsimulator(); } Development / cocos2d-x-3.14 / templates&#39;:不是有效的标识符

以下是我的流程的屏幕截图。任何建议或如何解决这个问题将不胜感激。

Image of Termnal

1 个答案:

答案 0 :(得分:0)

我认为你的bash .profile有一个cocos2d-x的相对路径。编辑.profile以在~/前面添加Development/cocos2d0x...,然后使用source命令重试。