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.

Compiler/OMAPL138B-EP: missing "}" in CSL header file

Part Number: OMAPL138B-EP
Other Parts Discussed in Thread: OMAPL138

Tool/software: TI C/C++ Compiler

Hello

This is more a bug report than a question.

The header file:

ti/pdk_OMAPL138_1_01_00_02/packages/ti/csl/cslr_spi.h

(which is part of the chip support library for the OMAPL138)

contains  the section

#ifdef __cplusplus
extern "C" {
#endif

However, the section

#ifdef __cplusplus
}
#endif

is missing at the end!

This is fine when compiling C code. But it causes the C++ compiler to throw a "missing '}' at end of file" error.

To make things even more complicated, the compiler does not tell you "missing '}' in file cslr_spi.h", but instead throws this error for the currently compiled C++ file which includes this header file over many nested headers.

PS: do you even TRY to compile your libraries before releasing them???