QUOTE(Carcharius @ Jul 3 2005, 03:57 PM)
Right a quick google leads me to believe that setting
PREFIX=/cygdrive/r/openxdk
should be what you need.
The drives available to windows should get mapped in /cygdrive.
A----HA! I knew that God was a part of Google!

Even writing ls -al in Cygwin root directory doesn't show this special directory!
Well, it shows that gcc and g++ weren't made for writing a ~ in its -I parameter.
From better to better:
CODE
$ make
/bin/gcc -c comingSoon.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin
-fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/cygdr
ive/r/openxdk/i386-pc-xbox/include -I/cygdrive/r/openxdk/include -I/cygdrive/r/o
penxdk/include/SDL
/bin/gcc -o comingSoon.exe comingSoon.o -L/cygdrive/r/openxdk/i386-pc-xbox/lib -
L/cygdrive/r/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -
nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--e
ntry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'comingSoon.exe' -DUMPINFO:"comingSoon.cxbe" -OUT:"comingSoon.xbe" c
omingSoon.exe > /dev/null
cxbe: not found
make: *** [comingSoon.exe] Error 127
... It can't find cxbe? No prob' with this type of error now! Just change my makefile header to this:
CODE
#
# update this variable to wherever you installed the OpenXDK libraries
#
#PREFIX = /usr/local/openxdk
PREFIX = /cygdrive/r/openxdk
#CC = i386-pc-xbox-gcc
#CPP = i386-pc-xbox-g++
#CXBE = cxbe
CC = gcc
CPP = g++
CXBE = /cygdrive/r/openxdk/bin/cxbe
And try again:
CODE
$ make
gcc -c comingSoon.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-
exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/cygdrive/r
/openxdk/i386-pc-xbox/include -I/cygdrive/r/openxdk/include -I/cygdrive/r/openxd
k/include/SDL
gcc -o comingSoon.exe comingSoon.o -L/cygdrive/r/openxdk/i386-pc-xbox/lib -L/cyg
drive/r/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostd
lib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,
_WinMainCRTStartup -Wl,--strip-all
/cygdrive/r/openxdk/bin/cxbe -TITLE:'comingSoon.exe' -DUMPINFO:"comingSoon.cxbe"
-OUT:"comingSoon.xbe" comingSoon.exe > /dev/null
Bam! Message box appears from cxbe.exe with message "The procedure entry point _impure_ptr could not be located in the dynamic link library cygwin1.dll."! OK. And finally Cygwin writes:
CODE
make: *** [comingSoon.exe] Error 57
After searching a bit in Google about _impure_ptr, I found out that this error occurs in old versions of Cygwin. So I must reinstall my Cygwin package... and I don't have the admin rights to do so!!!
At least, it looks like all of my problems with my makefile are OK now with those changes.

I must call the admin and let him solve the _impure_ptr problem. I don't know how long it will take, since it's in my university, but I'll write back when it'll be done.
Meanwhile, thanks for all your help Carcharius!
