This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

armcl adds %TEMP% to the include list

I noticed a strange behavior: Compiling an assembly file which contains .cdecls C seems to look for the included files also (even first!) at %TEMP% or %TMP%. I found the out the hard way because an included file was in the local directory and also in tmp. The local file was not used. Is this an expected behaviour or a bug`?
  • The files included through .cdecls should be found according the section titled The Search Path for #include Files in the ARM compiler manual.  The TEMP or TMP environment variables are not used.  If you see something different, then that seems like a bug.

    Thanks and regards,

    -George

  • It is the assembler which has problems not the C/C++ compiler. I noticed this because I had two equally named header files, one with an error in %TMP% and a correct one in the working directory. A C file pulling it in, compiled. But an assembly file did not. After deleting the file in %TMP% the assembler used the same header file as the C compiler (verified by adding #error).
  • Thank you for letting us know about the problem.  I can reproduce the behavior.  I filed SDSCM00052843 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George