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.
(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
I built a bat file that I call from command:
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