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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: 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

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-673 - Mistakenly including a C++ header f...
                SYNCHRONIZED
                • Last Sync Date: