I have installed MinGW under C:\MinGW directory and MSYS under C:\MinGW\msys directory. Also I updated my Windows system PATH variable with the following paths:
C:\MinGW\bin, C:\MinGW\msys\1.0\bin. When I issue mingw32-make command on my project makefile, it elicits the error message below:
Building file: ../bits.c
Invoking: GCC C Compiler
gcc -DNULL=(void*)0 -I"H:\Experiment\Shared\simulator" -O3 -Wall -c -fmessage-le
ngth=0 -MMD -MP -MF"bits.d" -MT"bits.d" -o "bits.o" "../bits.c"
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `gcc -DNULL=(void*)0 -I"H:\Experiment\Shared\simulator"
-O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"bits.d" -MT"bits.d" -o "bits.o" ".
mingw32-make: *** [bits.o] Error 258
But, "mingw32-make clean" works fine.
Surprisingly, when I remove MSYS bin path from the PATH variable, make works fine, but clean fails as it doesn't find "rm" in the search path.
Can anyone suggest how to make them both work together?
Thanks & Regards,