When you specify an include path to the Rogue Wave header files, make sure that it does not include a final rw:
# Use this: CC -I/usr/local/include -c myprog.C # not this: CC -I/usr/local/include/rw -c myprog.C