hi,
just having a few issues recompiling a modified powerswitch.c
using the provided makefile, it comes up with the following error in programmer's notepad:
> "make.exe" all
gcc -I..\MinGW\include -O -Wall -c powerSwitch.c
process_begin: CreateProcess(NULL, gcc -I..\MinGW\include -O -Wall -c powerSwitch.c, ...) failed.
make (e=2): The system cannot find the file specified.
make.exe: *** [powerSwitch.o] Error 2
I've tried using C:\MinGW\include as the include directory, among other combinations, but it just gives the same error.
also, i'm assuming the usb.h header given from libusb-win32 supposed to be inserted into MinGW's include directory as well?
thanks.
recompiling powerswitch.c
oh umm.. i also tried to compile it under unix, but it reports errors from MinGW's library:
gcc -Wall -O -I../MinGW/include -I../local/include -L../local/lib -L../MinGW/lib -c powerSwitch.c
In file included from ../MinGW/include/windef.h:253,
from ../MinGW/include/windows.h:48,
from ../local/include/usb.h:5,
from powerSwitch.c:22:
../MinGW/include/winnt.h:2352: #error "undefined processor type"
MinGW version is 5.1.3
gcc -Wall -O -I../MinGW/include -I../local/include -L../local/lib -L../MinGW/lib -c powerSwitch.c
In file included from ../MinGW/include/windef.h:253,
from ../MinGW/include/windows.h:48,
from ../local/include/usb.h:5,
from powerSwitch.c:22:
../MinGW/include/winnt.h:2352: #error "undefined processor type"
MinGW version is 5.1.3
This look like a general problem with the MinGW installation. The make utility complains that it can't find the compiler (as far as I understand the error message). Either the make utility does not match the rest of the installation (I remember there were two "make" packages for MinGW, one claimed that the other was broken), or the compiler (gcc) is not installed.