compile and run ; gcc; QNX

How do you compile and run a C program in QNX using the gcc compiler?
I need this information, and I have no idea as I’m not using QNX, and I’m having trouble installing it.

Are you using the IDE ?
using the gcc under QNX is almost the same like other OSs

i’m not using an ide
just the terminal
aha
10x
then, it’s like : gcc name.c -o name.o
I’ll give it a try

This is really not a QNX question.
Check gcc docs. A quick search on google shows

delorie.com/djgpp/doc/ug/compiling/gcc.html
gcc.gnu.org/onlinedocs/gcc/