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.

CCE and Redefine Error during Code Port

Other Parts Discussed in Thread: MSP430F249

I am working on porting code from an NEC chip to the MSP430F249. I am using CCE 3.2.2.1.8. During the "Linking" of the project, I receive several of the following errors for numerous functions that are declared. I imagine it has something to do with the fact that las.obj has the "comm_xmt_str" function already linked into it through a header file, but why is it choking when system.obj is linked. I know "xxx.h" files are included throughout the various files, but why is this causing an error? Is there any way to ignore this through the Linker setup.

error: symbol "comm_xmit_str" redefined: first defined in "./LAS.obj"; redefined in "./SYSTEM.obj"

  • This error is typically generated when the symbol has been defined in multiple source files. Where is "comm_xmit_str" defined, in a source file or a header file? Could you send code snippets of these 2 source files and what the build command looks like in the CCE build window?

  • I think you might have triggered a thought. It looks like all the functions this error is occurring on are ones that I have implemented a return call within the header file so I can slowly migrate each of the corresponding C files over. So for the comm_xmt_str function I have placed the following line in the comm.h header file to at least implement the function but not allow any erros.

    int

    comm_xmit_str (enum CommPort Port, char *buff){return(1);}

     

    'Building file: ../LAS.C'

    'Invoking: MSP430 Compiler v3.0'

    "C:/Program Files/Texas Instruments/CC Essentials v3/tools/compiler/MSP430/bin/cl430" --fp_reassoc=off --include_path="C:/Program Files/Texas Instruments/CC Essentials v3/tools/compiler/MSP430/include" --sat_reassoc=off --symdebug:dwarf --plain_char=unsigned --silicon_version=mspx --opt_level=3 --printf_support=full --asm_listing --preproc_with_compile --preproc_dependency="LAS.pp" "../LAS.C"

    "../LAS.C", line 349: warning: variable "mask" was set but never used

    'Finished building: ../LAS.C'

    'Building file: ../SYSTEM.C'

    'Invoking: MSP430 Compiler v3.0'

    "C:/Program Files/Texas Instruments/CC Essentials v3/tools/compiler/MSP430/bin/cl430" --fp_reassoc=off --include_path="C:/Program Files/Texas Instruments/CC Essentials v3/tools/compiler/MSP430/include" --sat_reassoc=off --symdebug:dwarf --plain_char=unsigned --silicon_version=mspx --opt_level=3 --printf_support=full --asm_listing --preproc_with_compile --preproc_dependency="SYSTEM.pp"

    'Finished building: ../SYSTEM.C'

**Attention** This is a public forum