Chris McKillop wrote:
Definitely is busted on 6.2.0, but is working on 6.2.1. If you have our
commercial product and meet the requirements, you could probably try signing
up for the 6.2.1 beta: > http://www.qnx.com/newsletter/> .
chris
OK, thanks. Good to know that it really is a bug.
I found a workaround for my problem; I put the include filenames
into the “compile options” parameter of the
config file. I’m trying to get to a February demo using the
NC product, but at that point may want to buy the commercial
version.
Is there a “what’s nonstandard about QNX’s version of
gcc” tech note? One would be helpful. So far, I’ve
discovered the following:
– Exceptions silently default to off. GCC normally
generates exception code for all .cpp files.
“-fexceptions” is needed to turn them on.
– A few of the include files are in nonstandard places,
even though they don’t seem to need to be. This
includes “new”, “new.h”, and some of the STL files.
– As mentioned, some of the usual environment variables don’t
seem to be recognized by the compiler.
– The “setjmp” structure (for “longjump”) is defined as an
anonymous structure. Some existing code assumes
otherwise.
– “sqrt” is not defined for type “int”. Some existing code
assumes otherwise.
Are more differences known? Thanks.
John Nagle
Animats
John Nagle <> nagle@downside.com> > wrote:
You’re answering tech support messages late at night
on a Saturday? I’m impressed. Thank you.
There are workarounds, but I’m just puzzled that
“gcc” on QNX seems to be ignoring its standard
environment variables. Is that known not to work,
or is there something special I need to do to
make it work?
[What I’m doing, incidentally, is bringing up
the OpenCV computer vision library up on QNX.]
John Nagle
Animats
Chris McKillop wrote:
Often you can pass in extra include paths to the ./configure script itself.
chris
John Nagle <> nagle@downside.com> > wrote:
I’ve been trying to get “gcc” to look in user-specified
directories for include files, using the environment variables
“CPATH”, “C_INCLUDE_PATH”, and “CPLUS_INCLUDE_PATH”. Those
variables seem to have no effect. I tested this with
C_INCLUDE_PATH=/usr/local/include
export C_INCLUDE_PATH
gcc test.c
where “test.c” consisted of nothing but an include
of a file in /usr/local/include.
I’ve also tried setting CPATH and CPLUS_INCLUDE_PATH.
No effect.
Using “gcc -I/usr/local/include test.c” works fine.
I don’t want to do it that way, though, because I’m trying
to build some Linux packages with complicated configure
scripts, and don’t want to modify their build system.
gcc is 2.95.3, as supplied with QNX 6.20 NC.
John Nagle
Animats
\