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.

LAUNCHXL-F28377S: Basics of Include

Part Number: LAUNCHXL-F28377S

Hi All,

I meet following many errors;

symbol "_DutyFine" redefined: first defined in "./aaa.obj"; redefined in "./bbb.obj" symbol "_DutyFine" redefined: first defined in "./aaa.obj"; redefined in "./ccc.obj" ddd C/C++ Problem

Is this mistake a kind of include?

Best,

Takano

  • Hi,

    Yes, it's issue with same function defined in multiple file. Either exclude the files from compilation or comment out the function definition.

    Regards,

    Vivek Singh

  • Hi Singh-san,

    The defined value (symbol) is defined at a single location in a file, but such the error is occurred.
    So, I have no idea how to treat include file, I already use "ifdef" description to avoid multiple includes for single file.

    Best,
    Takano
  • Hi,

    I think that this error is occurred by properties->include options setting.

    But I have no idea, I need your help.

    Best,

    Takano

  • HI,

    I miss understand about include the files, especially a process of including and linking.
    CCS's compiler append include file(s) described at header of each file, and after that checks multiple definitions, so the error is occurred.

    Then how to treat header fie is efficient way?, because my code uses a global variable across several source code files. I think that this is basics of C language, please tell me about the way.

    Best,
    Takano
  • Takano-san,

    Sorry for late reply. Let us know if you still have the issue and I'll ask someone from our software team to look into this .

    Vivek Singh