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.

PROCESSOR-SDK-AM64X: Missing extern "C" statement when using enet.h with C++

Part Number: PROCESSOR-SDK-AM64X


Following Issue is found also in SDK Version 08.02.00.12 and older.


If the enet.h is included in a cpp module, it compiles with linker errors. The functions listed there are included as c++-functions, because of the missing extern "C"  statement. The file which should be modified is:
C:\ti\mcu_plus_sdk_am243x_08_02_00_12\source\networking\enet\core\include\enet.h

#ifdef __cplusplus
extern "C" {
#endif 

... /* function prototype declarations */

#ifdef __cplusplus
}
#endif

To reproduce the link error, write and compile a cpp module which shall access one of the library function.