RT-Lab Compilation Error gcc compiler version
Question:
We received the following error during compilation of rtdemo1.mdl using RT-Lab.
How can we resolve this compilation error?
Compilation error message:
make: ntox86-gcc-3.3.1: Command not found
make: *** [v_and_c_io_test_file_1_sm_io_block.o] Error 127
Answer:
The compilation error that you are seeing is due to the compiler version that is used. In order to compile with the correct compiler version that you are using,
Copy the attached file qnxnto.opt into the following directory: C:\OPAL-RT\RT-LAB8.X.X\simulink\rtw\c\common\
This file specifies which compiler version to use for compilation on your QNX target.
Newer targets with QNX 6.3.2 (complier 3.3.5) and older targets have QNX 6.3.0 (compiler 3.3.1).
There are 2 options to resolve this error in the future when working between both target computers: have same QNX version on both targets installed or used earlier version of RT-Lab than 8.2.1 (RT-Lab 8.1.X or 8.0.X), which all use the same compiler version.
qnxnto.opt file specifies compiler version:
#--------------------------- Tool Specifications -------------------------
#
# Modify the following macros to reflect the tools you wish to use for
# compiling and linking your code.
#
CC = ntox86-gcc-3.3.5
CCPP = ntox86-g++-3.3.5
FF = g77
LD = ntox86-g++-3.3.5
qnxnto.opt - RT-Lab Simulink compiler options file to set compiler to GCC 3.3.5




