This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to use string

I'm using keil mdk V5, I included "string.h" but I still cannot use string, I get "error: use of undeclared identified 'string' message , anyone knows whats wrong with it?

Parents
  • I cant seem to find where I can select compiler

    It's a single compiler - but it can be configured to treat your source as either C or C++

    By default:

    • Source files named .c will be compiled as C;
    • Source files named .cpp will be compiled as C++

    Or you can use one of the options described in the link I gave to set it explicitly:

Reply
  • I cant seem to find where I can select compiler

    It's a single compiler - but it can be configured to treat your source as either C or C++

    By default:

    • Source files named .c will be compiled as C;
    • Source files named .cpp will be compiled as C++

    Or you can use one of the options described in the link I gave to set it explicitly:

Children