Netbeans Cygwin64 Compilation error

Asked by Kyle

I'm trying to compile a file using NetBeans on Windows via Cygwin and it gives me an error related to the file being missing. It seems like the compiler is looking for an absolute path to the file while it's receiving the Cygwin path. Here is the error output:

arm-none-eabi-gcc.exe: error: /cygdrive/C/Users/kyle/workspace_arm/nrf52_ARM/EHAL/ARM/Nordic/nRF52/exemples/Blinky/src/main.c: No such file or directory
arm-none-eabi-gcc.exe: fatal error: no input files
compilation terminated.

It's searching in /cygdrive/C/Users/... when it seems like its looking for C:/Users/kyle/...etc.

Is there any way to change where it searches for the files being compiled?

Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tejas Belagod (belagod-tejas) said :
#1

In your makefiles, try pre-pending 'cygpath -w' to the files you want to compile.

Can you help with this problem?

Provide an answer of your own, or ask Kyle for more information if necessary.

To post a message you must log in.