Kdevelop execute project with parameters

流过昼夜 提交于 2019-12-12 18:41:59

问题


I am new to Kdevelop and I am trying for 2 hours to run a project based on input parameters in C++ style.

The code is here:

int main(int argc, char** argv)
{
   std::string s = args[1]
   std::cout<<s<<std::endl;
}

I am trying to add the parameter, but it is crashing and saying

Process Error - Kdevelop
A shell meta character was included in the atguments for file launch ...

Can anyone tell me what is it about? Andhow can I fix it, or where shall I add the execution parameters?

I have placed them in the Launch -> Configuration Launches -> Behaviour -> Arguments see below

Please help


回答1:


The arguments must be between quotes:

"/your folder and path/Your file"

or

"enter your parameter here"

instead of

just the parameter


来源:https://stackoverflow.com/questions/21782403/kdevelop-execute-project-with-parameters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!