Ability to compile without making a project file

Started by jwzumwalt, April 22, 2009, 06:40:22 AM

Previous topic - Next topic

jwzumwalt

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

AlexN

#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.   ;)
best regards
Alex ;)

Vortex

Hi jwzumwalt,

You can use simple batch files to build your projects.
Code it... That's all...

jwzumwalt

I get this error after using your suggestion....
File not found: 'test.c'.
*** Program return 1 ***


Quote from: 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.   ;)

AlexN

Quote from: 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 ***


Quote from: 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.   ;)
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.
best regards
Alex ;)

AlexN

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.  ;)
best regards
Alex ;)