Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple definition of main "Error" #2

Open
imranctg16 opened this issue Jun 5, 2017 · 3 comments
Open

Multiple definition of main "Error" #2

imranctg16 opened this issue Jun 5, 2017 · 3 comments

Comments

@imranctg16
Copy link

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 . :(

@corochann
Copy link
Owner

If you add executable file by

  1. choose file to execute
  2. right click -> choose "add executable for c/cpp file"
  3. Make sure CMakeLists.txt has modified and sync this change.
    then can you execute the code from right top button?

@iled
Copy link

iled commented Aug 17, 2017

@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.

@KylinA1
Copy link

KylinA1 commented Oct 2, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants