Page 1 of 1

recompiling powerswitch.c

Posted: Tue Oct 09, 2007 5:41 am
by Guest
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.

Posted: Tue Oct 09, 2007 6:17 am
by Guest
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

Posted: Wed Oct 10, 2007 2:19 pm
by Jackson
im having a similar issue. are we supposed use the compiler provided with mingw, or doesn't it matter? either way its seemingly not working :(

Posted: Sat Oct 13, 2007 12:11 pm
by christian
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.