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

No such file or directory

Note: This was originally posted on 17th May 2013 at http://forums.arm.com

Hello,



While using DS5 to build my project, I get the following error:


fatal error: xyz.h: No such file or directory



I know that it exists but how do I let the compiler know where to look?

  • Note: This was originally posted on 20th May 2013 at http://forums.arm.com

    OK thanks, that was pretty easy.



    I'm still having some troubles with the _asm code, e.g.
    [color="#7f0055"]__asm[/color]  { dsb };

     

    [color="#7f0055"]__asm[/color]  { isb };



    which gives the error
    error: expected '(' before '{' token
    error: 'dsb' undeclared (first use in this function)


    I am using the Arm Cortex A9 so ARMv7-A arch.



    What am I missing?  I am using the DS5 IDE on a Windows machine, this works fine on a Linux machine.
  • Note: This was originally posted on 21st May 2013 at http://forums.arm.com

    I tried that code, which you had above and I got the same errors.  How did you configure your compiler for the Cortex-A9?  I am using the Altera version of the DS5 and I'm guessing that it should be setup OK.



    error: expected '(' before '{' token
    error: 'dsb' undeclared (first use in this function)
    each undeclared identifier is reported only once for each function it appears in
  • Note: This was originally posted on 21st May 2013 at http://forums.arm.com

    [It's a good idea to start a new thread (with an appropriate title) instead of changing the subject of an existing thread.  But I'll answer here anyway.]


    error: expected '(' before '{' token
    error: 'dsb' undeclared (first use in this function)

    Those look like gcc error messages.  That's armcc's inline asm syntax and gcc won't understand it.  Are you using gcc or armcc?

    What am I missing?  I am using the DS5 IDE on a Windows machine, this works fine on a Linux machine.

    Maybe you're using armcc on the Linux machine?
  • Note: This was originally posted on 21st May 2013 at http://forums.arm.com

    I have used all of the compilers I got with DS5.  For armcc I get:



    Error:  #1114: this feature not supported on target architecture/processor

       __asm{ dsb };



    That is using the code we stated above.