NO

Author Topic: How to run code without creating new projects  (Read 1307 times)

Offline MVDVPRSD

  • Member
  • *
  • Posts: 2
How to run code without creating new projects
« on: January 30, 2022, 12:42:02 PM »
Hi,
I am fairly new to C...I want to save and run source codes...I was wondering if I need to create a new project each time I run a new source file...; what I want is a folder in which I can save multiple source files and run them independently... when I tried this within a project ,it was returning "main() already defined"..... any help?

thanks
« Last Edit: January 30, 2022, 08:22:07 PM by MVDVPRSD »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: How to run code without creating new projects
« Reply #1 on: January 30, 2022, 08:58:27 PM »
Create project and disable other files in project.
May the source be with you

Offline John Z

  • Member
  • *
  • Posts: 790
Re: How to run code without creating new projects
« Reply #2 on: January 31, 2022, 11:59:40 AM »
To do what TimoVJL proposes you right click on the source files in the source files list on the righthand window and select 'exclude'.  See attachment.

This may seem convenient in the beginning but once you start to have many source files for a project you'll want to have separate projects.

John Z

Offline MVDVPRSD

  • Member
  • *
  • Posts: 2
Re: How to run code without creating new projects
« Reply #3 on: January 31, 2022, 05:24:25 PM »
ook this works...thanks guys :D