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.
Tool/software: Code Composer Studio
Hi there,
I'm working with CCS8.3 and I incldued into my project some header and source file provided by HMS for an SPI Communication Module.
When I compile the project I get this error:
"Description Resource Path Location Type
symbol "_RunShutdownSocketInterfaceSM" redefined: first defined in "./appl_abcc_socket_shutdown.obj";
redefined in "./driverlib/abcc/appl_abcc_socket_shutdown.obj" null: symbol "_RunShutdownSocketInterfaceSM" redefined: first defined in "./appl_abcc_socket_shutdown.obj";
redefined in "./driverlib/abcc/appl_abcc_socket_shutdown.obj" cpu01 C/C++ Problem"
The symbol "RunShutdownSocketInterfaceSM" is defined into an header file as:
EXTFUNC void RunShutdownSocketInterfaceSM ( int *status );
And defined in another C file file as
EXTFUNC void RunShutdownSocketInterfaceSM ( int *status );
and into the same file the function is implemented
void RunShutdownSocketInterfaceSM( int *ShutdownStatus ) { ... }
This is how EXTFUN is defined
#ifdef __cplusplus #define CPLUSPLUS #endif #ifdef CPLUSPLUS #define EXTFUNC extern "C" #else #define EXTFUNC extern #endif
The source and header file are placed inside a project folder and they are linked into the project.
I'm struggling with this error.
Can anybody help me?
Thanks in advance for your time.
Best regards,
Federico
I am not familiar with ...
Fede Rico said:some header and source file provided by HMS for an SPI Communication Module
But based on this error diagnostic ...
Fede Rico said:symbol "_RunShutdownSocketInterfaceSM" redefined: first defined in "./appl_abcc_socket_shutdown.obj";
redefined in "./driverlib/abcc/appl_abcc_socket_shutdown.obj"
I can tell the same object file appl_abcc_socket_shutdown.obj appears in the project 2 times. Once in the project root directory, and once in the directory ./driverlib/abcc. It seems likely that one of those two files should be removed from the project.
Please let me know if this suggestion resolves the problem.
Thanks and regards,
-George