System Files Bug
Posted: Tue Aug 19, 2008 6:14 am
I ran into an issue when referring to ucosmcfc.h, getting C++ linkage errors when referring to it from C files. ucosmcfc.c is used by both C and C++ files and the variable critical_count is defined as an extern, without any previous extern "C" definition. The system files build ok, but referring to ucosmcfc from any new C file in the project will fail.
I suggest changing ucosmcfc.h in future releases so that
#ifdef __cplusplus
extern "C"
{
#endif
is placed at the begining of the file.
I suggest changing ucosmcfc.h in future releases so that
#ifdef __cplusplus
extern "C"
{
#endif
is placed at the begining of the file.