The <strings.h> functions aren't declared extern "C"

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-8154
    • Hide
      C7000_1.4.0.LTS
      C6000_8.2.0
      C6000_8.3.0
      MSP430_20.2.0.LTS
      ARM_18.12.0.LTS
      MSP430_18.12.0.LTS
      PRU_2.3.0
      ARM_20.2.0.LTS
      C2000_18.12.0.LTS
      C2000_20.2.0.LTS
      Show
      C7000_1.4.0.LTS C6000_8.2.0 C6000_8.3.0 MSP430_20.2.0.LTS ARM_18.12.0.LTS MSP430_18.12.0.LTS PRU_2.3.0 ARM_20.2.0.LTS C2000_18.12.0.LTS C2000_20.2.0.LTS
    • Hide
      ARM_18.12.8.LTS*
      C7000_1.4.1.LTS*
      MSP430_18.12.8.LTS*
      C6000_8.2.10*
      C6000_8.3.9*
      C2000_20.2.3.LTS*
      PRU_2.3.4*
      ARM_20.2.3.LTS*
      MSP430_20.2.3.LTS*
      C2000_18.12.8.LTS*
      Show
      ARM_18.12.8.LTS* C7000_1.4.1.LTS* MSP430_18.12.8.LTS* C6000_8.2.10* C6000_8.3.9* C2000_20.2.3.LTS* PRU_2.3.4* ARM_20.2.3.LTS* MSP430_20.2.3.LTS* C2000_18.12.8.LTS*
    • default
    • Hide
      You should wrap the include with an extern "C" declaration, like this:
      extern "C" {
      #include <strings.h>
      }
      Show
      You should wrap the include with an extern "C" declaration, like this: extern "C" { #include <strings.h> }

      The file strings.h declares some POSIX functions (ffs, rindex, etc). These are not standard C functions, and this is not a standard C header file, so the C++ standard does not require implementations to have an extern "C" declaration in this file. However, for convenience, we will add it.

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-2564 - The <strings.h> functions aren't de...
                SYNCHRONIZED
                • Last Sync Date: