NO

Author Topic: Pelles Command Line  (Read 3228 times)

turorudolf93

  • Guest
Pelles Command Line
« on: December 21, 2013, 02:15:43 PM »
Hi!
I've been using Pelles C for a while now, as an alternative of gcc, because i don't have Linux OS. However, I need to use command line arguments, so I just started with Pelles Command Prompt (64-bit), can anyone help me with basic stuff, eg. how to compile a source code in Command Prompt, and, how to execute the ready .c file? Thanks for any help, I didn't succed in finding these info, in Pelles Help files.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Pelles Command Line
« Reply #1 on: December 21, 2013, 03:37:51 PM »
(Use povars32.bat or povars64.bat from PellesC\bin folder to setup environment for PellesC compiler if use open cmdline another way.)
Then
>CC hello.c
>hello.exe
or
>pocc.exe hello.c
>polink hello.obj
>hello.exe
« Last Edit: December 22, 2013, 03:22:49 PM by Stefan Pendl »
May the source be with you

siwenjo

  • Guest
Re: Pelles Command Line
« Reply #2 on: January 09, 2014, 05:05:39 AM »
I built a bat file that I call from command:

Code: [Select]
del bin\App.exe
set libs=bin\main.o bin\other.o

cc /c -Tamd64-coff other.c -Fobin\other.o
cc /c -Tamd64-coff main.c -Fobin\main.o

cc -Wall %libs% /OUT:bin\App.exe

bin\App.exe