QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
How should I compile my programs for QNX Windows for QNX2? |
Ref. No. |
QNX.000009330 |
Category(ies) |
Development |
Issue |
How should I compile my programs for QNX Windows? |
Solution |
The answer depends on whether you're using the Quantum C compiler or the Computer Innovations' C86 compiler.
To compile Windows applications under Quantum C, the cc script we use is:
cc +p +Wc,+c +Wc,+u +Wc, w=5 x09in=/windows/lib in=/windows/lib-ol x091=/windows/lib 1=/windows/lib-ol
If you're using a C86 compiler, however, your script would be:
cq -AL -c -I/windows/CIlib -I/windows/lib -I/windows/lib-ol
The most important thing to remember is that you must include the path to the libraries that contain the QNX Windows functions.
|
|