This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSP/BIOS problem in sys.h and tsk.h when used with C++ code

Hi, I am using DSP/BIOS 5.31.07 with some C++ code. The problem I am seeing is:

1. In sys.h the declaration of:

extern Void SYS_error(String s, Int errno, ...);

gets expanded by the pre-processor to:

extern Void SYS_error(String s, Int ::std::errno, ...);

which causes a compilation error.

2. In tsk.h the declaration of the structure TSK_Obj also

contains  the following line:

Int         errno;          /* TSK_seterr()/TSK_geterr() */

which is expanded by the pre-processor to

Int ::std::errno

which also causes a compilation error.

In the first case (sys.h) I could rename the function parameter and that would solve the problem.

The second case is trickier.

Do you have any suggestions of how to solve this issue ?!

Thanks very much in advance,

Todor Petkov