NO

Author Topic: question on multiple source files in same project  (Read 2069 times)

elias001

  • Guest
question on multiple source files in same project
« on: February 18, 2014, 09:15:16 PM »
Hello all,

I have a question about the Pelles C IDE with the latest version.

Suppose i have started a brand new project, and it is under windows 32/64 console application and name this project call "New Project".  I starts a new source code file, typed in my code, debug, build, compile then execute successfully.  I call the new source code file "file 1.c"

Then i tried have another source code file under the same project:  File > New > source code, on the screen, another screen with a new tab I call "untitled".  I typed in my code, save it as "file 2.c".  When i tried to build it, i either get the message "project build ended failure".   If i were to do a Save All (Control Shift S), the compiler does execute after the build process, i get the output from "file 1.c".  However I want the compiler to deal only with what is typed under "file 2.c".  Also, under the pull down menu under "projects", the build command only says "build New Project.exe" and then the executed output would all be from "file 1.c" and nothing from "file 2.c"

I am working through K.N.K's C programming A modern approach, basically, i want to start a new project for each chapter, and then under that project, i have a source code for each of the exercises under that chapter.  I might be doing something wrong with how I am starting the projects in the IDE. 

Thanks in advance

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: question on multiple source files in same project
« Reply #1 on: February 18, 2014, 09:48:35 PM »
See this.
As a general rule you should always check the forum for already answered questions.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide