SingleFileExecutionPlugin
SingleFileExecutionPlugin copied to clipboard
Multiple definition of main "Error"
I have two .cpp file in my directory ,,and as i would do in codeblock both of them got code in it,,as well as main function,, how do i switch from one file to another and run it ? Single file execution run button is a must need . :(
If you add executable file by
- choose file to execute
- right click -> choose "add executable for c/cpp file"
- Make sure CMakeLists.txt has modified and sync this change. then can you execute the code from right top button?
@imranctg16 after following the previous instructions, if you do not see the executable name in the top right dropdown menu, go to File > Reload CMake Project and then try again.
Btw, @corochann thank you for this plugin. I found it through your comment on SO.
@imranctg16 after following the previous instructions, if you do not see the executable name in the top right dropdown menu, go to File > Reload CMake Project and then try again.
Btw, @corochann thank you for this plugin. I found it through your comment on SO.
I think this works for me.