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

"cannot open source input file" due to cygdrive?

Note: This was originally posted on 26th October 2010 at http://forums.arm.com

Environment: Windows/Cygwin
Compiler: armcc RVCT4.0 BUild 771

gnumake doesn't like Windows Path in the target dependency. So I have to convert it to cygdrive format.
I'm using vpath to search for source files.
When compiling, I got the following error:

"no source": Error:  #5: cannot open source input file "/cygdrive/v/my_proj/source/my_code.c": No such file or directory

Questions:
Is it because of cygdrive?  Can armcc see file in cygdrive folder? Because I'm pretty sure that the file exists in the directory.

Thank you
-Andreas
Parents
  • Note: This was originally posted on 26th October 2010 at http://forums.arm.com

    With CYGPATH it only solved armcc. Not armasm
    Though armasm can find the file, but not the header files.

    For example:
    armasm -I/cygdrive/c/include /cygdrive/c/source/my_file.s -o /obj

    armasm can't seem to see the drive /cygdrive/c/include to search the header

    but the following is OK
    armasm -I../include

    or
    armasm -IC:/include

    or
    armasm -IC:\include


    Any idea how to go around this?


    Thank you,
    -a
Reply
  • Note: This was originally posted on 26th October 2010 at http://forums.arm.com

    With CYGPATH it only solved armcc. Not armasm
    Though armasm can find the file, but not the header files.

    For example:
    armasm -I/cygdrive/c/include /cygdrive/c/source/my_file.s -o /obj

    armasm can't seem to see the drive /cygdrive/c/include to search the header

    but the following is OK
    armasm -I../include

    or
    armasm -IC:/include

    or
    armasm -IC:\include


    Any idea how to go around this?


    Thank you,
    -a
Children
No data