Pelles C forum

Pelles C => Feature requests => Topic started by: jwzumwalt on April 22, 2009, 06:40:22 AM

Title: Ability to compile without making a project file
Post by: jwzumwalt on April 22, 2009, 06:40:22 AM
Ability to compile without making a project file :-)
(or maybe the solution is to default to a terminal build if there is no project)
This would allow quick and dirty testing and proof of concept development.
jz
Title: Re: Ability to compile without making a project file
Post by: AlexN on April 22, 2009, 10:30:32 AM
You can use Tools->Customize...

Then add an Item with
Menu text: "Produce a C-file"
Command: cc.exe from the PellesC\Bin directory
Arguments: $(filename)$(fileext)

So you can compile and link a simple C-source file.

Pelle must not do everything.   ;)
Title: Re: Ability to compile without making a project file
Post by: Vortex on April 23, 2009, 11:38:43 AM
Hi jwzumwalt,

You can use simple batch files to build your projects.
Title: Re: Ability to compile without making a project file
Post by: jwzumwalt on April 26, 2009, 08:38:25 AM
I get this error after using your suggestion....
File not found: 'test.c'.
*** Program return 1 ***


You can use Tools->Customize...

Then add an Item with
Menu text: "Produce a C-file"
Command: cc.exe from the PellesC\Bin directory
Arguments: $(filename)$(fileext)

So you can compile and link a simple C-source file.

Pelle must not do everything.   ;)
Title: Re: Ability to compile without making a project file
Post by: AlexN on April 27, 2009, 10:21:26 AM
I get this error after using your suggestion....
File not found: 'test.c'.
*** Program return 1 ***


You can use Tools->Customize...

Then add an Item with
Menu text: "Produce a C-file"
Command: cc.exe from the PellesC\Bin directory
Arguments: $(filename)$(fileext)

So you can compile and link a simple C-source file.

Pelle must not do everything.   ;)
Try to use in arguments: $(filepath)

I think, it would work better. For the my first solution you must start POIDE in the correct directory.
Title: Re: Ability to compile without making a project file
Post by: AlexN on April 27, 2009, 11:12:28 AM
You can also make entries for Debug (Arguments: /Zi /DEBUG $(filepath) ) and Release (Arguments: /O2 $(filepath) ). If you use Debug, you can load the exe-file and Debug it with POIDE.  ;)