Defining /cygdrive/ for GNUARM output

Started by sig5534 December 31, 2004

After getting the GNUARM installed, when I do a make I get the
following output:

main.o(.text+0x10): In function `main':
/cygdrive/d/GNUARM/Projects/Vader/main.c:172: undefined reference to
`Init_CPU'
main.o(.text+0x24):/cygdrive/d/GNUARM/Projects/Vader/main.c:198:
undefined reference to `Init_Display'
main.o(.text+0x28):/cygdrive/d/GNUARM/Projects/Vader/main.c:293:
undefined reference to `MA_ReadPort_GPIO'
main.o(.text+0x48):/cygdrive/d/GNUARM/Projects/Vader/main.c:294:
undefined reference to `VaderData'
collect2: ld returned 1 exit status
NMAKE : fatal error U1077: 'arm-elf-gcc' : return code '0x1'
Stop.

The file listings contain this "/cygdrive/d" portion like:

/cygdrive/d/GNUARM/Projects/Vader/main.c

The true path should be:

D:/GNUARM/Projects/Vader/main.c

How do I define this /cygdrive/ variable so I can get accurate paths
listed in the output?

Thanks, Chris.



An Engineer's Guide to the LPC2100 Series

/cygdrive/d/GNUARM/Projects/Vader/main.c

The true path should be:

D:/GNUARM/Projects/Vader/main.c

This is not wrong. You may try to use cd /cygdrive/d/ or cd /d: .
and then use pwd. I think you will understand what happened in cygwin environment.

I think NMAKE is different from make (GNU maker). Pls use make. sig5534 <> wrote:

After getting the GNUARM installed, when I do a make I get the
following output:

main.o(.text+0x10): In function `main':
/cygdrive/d/GNUARM/Projects/Vader/main.c:172: undefined reference to
`Init_CPU'
main.o(.text+0x24):/cygdrive/d/GNUARM/Projects/Vader/main.c:198:
undefined reference to `Init_Display'
main.o(.text+0x28):/cygdrive/d/GNUARM/Projects/Vader/main.c:293:
undefined reference to `MA_ReadPort_GPIO'
main.o(.text+0x48):/cygdrive/d/GNUARM/Projects/Vader/main.c:294:
undefined reference to `VaderData'
collect2: ld returned 1 exit status
NMAKE : fatal error U1077: 'arm-elf-gcc' : return code '0x1'
Stop.

The file listings contain this "/cygdrive/d" portion like:

/cygdrive/d/GNUARM/Projects/Vader/main.c

The true path should be:

D:/GNUARM/Projects/Vader/main.c

How do I define this /cygdrive/ variable so I can get accurate paths
listed in the output?

Thanks, Chris.
---------------------------------
Yahoo! Groups Links

To

---------------------------------