NO

Author Topic: Ability to compile without making a project file  (Read 4432 times)

jwzumwalt

  • Guest
Ability to compile without making a project file
« 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
« Last Edit: April 22, 2009, 06:42:58 AM by jwzumwalt »

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Ability to compile without making a project file
« Reply #1 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.   ;)
« Last Edit: April 22, 2009, 10:38:50 AM by AlexN »
best regards
 Alex ;)

Offline Vortex

  • Member
  • *
  • Posts: 797
    • http://www.vortex.masmcode.com
Re: Ability to compile without making a project file
« Reply #2 on: April 23, 2009, 11:38:43 AM »
Hi jwzumwalt,

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

jwzumwalt

  • Guest
Re: Ability to compile without making a project file
« Reply #3 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.   ;)

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Ability to compile without making a project file
« Reply #4 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.
best regards
 Alex ;)

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Ability to compile without making a project file
« Reply #5 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.  ;)
best regards
 Alex ;)