Kdevelop execute project with parameters

2019-07-21 07:01发布

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

Print Screen

Please help

标签: c++ kdevelop
1条回答
贼婆χ
2楼-- · 2019-07-21 07:06

The arguments must be between quotes:

"/your folder and path/Your file"

or

"enter your parameter here"

instead of

just the parameter
查看更多
登录 后发表回答