Pelles C forum

C language => Beginner questions => Topic started by: MVDVPRSD on January 30, 2022, 12:42:02 PM

Title: How to run code without creating new projects
Post by: MVDVPRSD 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
Title: Re: How to run code without creating new projects
Post by: TimoVJL on January 30, 2022, 08:58:27 PM
Create project and disable other files in project.
Title: Re: How to run code without creating new projects
Post by: John Z 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
Title: Re: How to run code without creating new projects
Post by: MVDVPRSD on January 31, 2022, 05:24:25 PM
ook this works...thanks guys :D