nasa / CFS_IO_LIB

19 stars 9 forks source link

Compilation error for trans_rs422.c for vxworks #4

Open excaliburtb opened 6 years ago

excaliburtb commented 6 years ago

When building for vxWorks the compiler errors with the following:

[ 34%] Building C object apps/io_lib/CMakeFiles/io_lib.dir/fsw/src/services/trans_rs422.c.obj /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c: In function 'IO_TransRS422Init': /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c:109: error: 'SIO_HW_OPTS_SET' undeclared (first use in this function) /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c:109: error: (Each undeclared identifier is reported only once /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c:109: error: for each function it appears in.) /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c:109: error: 'CS8' undeclared (first use in this function) /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c:109: error: 'CLOCAL' undeclared (first use in this function) /home/tbrain/habulous/apps/io_lib/fsw/src/services/trans_rs422.c:109: error: 'CREAD' undeclared (first use in this function) make[7]: *** [apps/io_lib/CMakeFiles/io_lib.dir/fsw/src/services/trans_rs422.c.obj] Error 1

mogar commented 4 years ago

has there been any progress on this issue?

mogar commented 4 years ago

I got around this by adding the line "#include " after "#include " on line 23 of io_lib.h