Home > Software engineering >  VsCode how setting can let c generated exe file in a set of folders?
VsCode how setting can let c generated exe file in a set of folders?

Time:11-19

As title, want to change the output folder, but input folder stays the same, everyone a great god to reassure genuflect is begged!

CodePudding user response:

Simple, you see my blog: https://blog.csdn.net/liups/article/details/102512769
One task. Json file
 
{
"Version" : "2.0.0,"
"Command", "g + +",
"Args" : [" - g ", "${file}", "- o", "${fileDirname}/${fileBasenameNoExtension}. Exe"],
"ProblemMatcher" : {
"The owner", "CPP",
"FileLocation" : [" relative ", "${workspaceRoot}"],
"The pattern" : {
"Regexp:" ^ "(. *) : (\ \ d +) : (\ \ d +) : \ \ s + (warning | error) : \ \ s + $" (. *),
"File" : 1,
"The line" : 2,
"Column" : 3,
"Severity" : 4,
"Message" : 5
}
}
}

That line is the g + + args. Exe parameters, it is ok to modify it, how to modify can run the g + + -- help or baidu search can be

CodePudding user response:

VS right-click on your project, select properties, then the linker, regular, in normal child attributes have a output file, here you can set your output EXE name and path
  • Related