Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8170

Mistakenly including a C++ header file in C yields "Incompatible Redefinition" warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Code Generation Tools
    • CODEGEN-1646
    • C2000_15.12.3.LTS
    • Compile the file as a C++ file, not a C file, or remove the include of the C++ header file
    • Hide
      If a user tries to include a C++ variant (e.g. cstdarg) of a C standard header file (e.g. stdarg.h) header file in a C file, the TI compiler emits an unhelpful warning message: "incompatible redefinition"

      It would be better if the TI compiler were to an emit an error like "you must use C++ to include 'cstdarg'," but this is a QoI enhancement, not a bug.

      No plans to address at this time.
      Show
      If a user tries to include a C++ variant (e.g. cstdarg) of a C standard header file (e.g. stdarg.h) header file in a C file, the TI compiler emits an unhelpful warning message: "incompatible redefinition" It would be better if the TI compiler were to an emit an error like "you must use C++ to include 'cstdarg'," but this is a QoI enhancement, not a bug. No plans to address at this time.

      Mistakenly including a C++ header file in C yields "Incompatible Redefinition" warning

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: