gcc and/or/vs gcc

I’m just starting to play with QNX (downloaded and installed on my laptop). I’ve
been porting some Linux software there. What (if any) is the relationship
between qcc and gcc under QNX? Are they totally separate toolchains? The links
in /usr/bin would seem to indicate otherwise. Does qcc just replace parts of
gcc. The docs recommend using qcc instead of gcc? But I’ve been having better
luck compiling linux apps using gcc.


Travis Griggs (a.k.a. Lord of the Fries)
Member, Fravenic Skreiggser Software Collective
Key Technology
“It had better be a pretty good meeting to be better than no meeting at all”–
Boyd K. Packer

Travis Griggs wrote:

I’m just starting to play with QNX (downloaded and installed on my
laptop). I’ve been porting some Linux software there. What (if any) is
the relationship between qcc and gcc under QNX? Are they totally
separate toolchains? The links in /usr/bin would seem to indicate
otherwise. Does qcc just replace parts of gcc. The docs recommend using
qcc instead of gcc? But I’ve been having better luck compiling linux
apps using gcc.

Hmm, well qcc and gcc are just some kind of uhh, layer on top of ‘cc’
which is the compiler… qcc and gcc use diffrent params and such, see
the docs for info bout that… Gcc use the same params as gnu GCC which
it is… Linux Apps use Parameters that fits to GCC and that pretty much
answers your question :slight_smile:
Why to use QCC i donno, Always use it when i do native stuff though…

/Johan

“Johan Björk” <phearbear@qnxstart.com> wrote in message
news:3AD9083E.5070605@qnxstart.com

Travis Griggs wrote:

I’m just starting to play with QNX (downloaded and installed on my
laptop). I’ve been porting some Linux software there. What (if any) is
the relationship between qcc and gcc under QNX? Are they totally
separate toolchains? The links in /usr/bin would seem to indicate
otherwise. Does qcc just replace parts of gcc. The docs recommend using
qcc instead of gcc? But I’ve been having better luck compiling linux
apps using gcc.


Hmm, well qcc and gcc are just some kind of uhh, layer on top of ‘cc’
which is the compiler… qcc and gcc use diffrent params and such, see

cc is link to qcc, it exists to satisfy the tradition.
qcc is ‘wrapper’ for gcc (and possibly other toolchains like
Watcom/Metrowerks).
gcc is ‘wrapper’ for whole GNU toolchain (cc1 - compiler, ld - linker, ar -
librarian …)

the docs for info bout that… Gcc use the same params as gnu GCC which
it is… Linux Apps use Parameters that fits to GCC and that pretty much
answers your question > :slight_smile:
Why to use QCC i donno, Always use it when i do native stuff though…

Use gcc for porting or writing portable stuff. qcc might help beginners to
deal with gcc options (it knows what options to feed for most standard
cases) and will be helpful if/when we indeed will have more than one
toolchain available.

  • igor