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

how to specify header files easily, like searching subdirectory

Do we have to specify the header files' path which are located in different directories one by one directory ? Can I just specify the general directory ,and letting the mdk itself searching header files in sub-directories?

There are too many sub-directories,and it's taking a lot of time. Can anyone help me please? Thx!

Parents
  • You seem to see problems.

    Let's just think about your above dir output.

    3 minutes with any free Windows compiler would be enough to write a program that:
    - strips the rest of the line after the last path separator. (strrchr)
    - throws away lines that matches the previous line. (strcmp, strcpy)
    - concatenate new lines with ';' in between. (strcat/snprintf/printf/...)

    And that is just one of many possible options.

    There is seldom time to find the "best" or "optimal" solution - most of the time "good enough" will do.

Reply
  • You seem to see problems.

    Let's just think about your above dir output.

    3 minutes with any free Windows compiler would be enough to write a program that:
    - strips the rest of the line after the last path separator. (strrchr)
    - throws away lines that matches the previous line. (strcmp, strcpy)
    - concatenate new lines with ';' in between. (strcat/snprintf/printf/...)

    And that is just one of many possible options.

    There is seldom time to find the "best" or "optimal" solution - most of the time "good enough" will do.

Children