Hi guys, I used psp-g++.exe to compile a file on gygwin,faild whin neither
psp-g++ -I/g/pspkit/devkitPSP/psp/sdk/include main.cpp
nor
psp-g++ -I/cygdrive/g/pspkit/devkitPSP/psp/sdk/include main.cpp
but,if use win32 style path,it sucess
psp-g++ -Ig:/pspkit/devkitPSP/psp/sdk/include main.cpp
who can tell me why!!!!
why the psp-g++ don`t accept the cygwin&MinGW style pat
mingw toolchains accept both path formats:
either microsoft style C:\directory\file.extension
or unix C:/directory/file.extension
HOWEVER :) you must be consistent in the command invocation, in other words, if you pick \ you must always use it, the same for /, example:
gcc -I..\include src\file.c -o bin\file.o -> OK
gcc -I../include src/file.c -o bin/file.o -> OK
gcc -I../include src\file.c -o bin\file.o -> NOT OK (include slash different from file)
Also note that mingw builds do not understand /cygdrive/c because there is no directory named cygdrive in the root of the drive where the binary exists.
Please try to check which gcc are you using is it mingw? is it cygwin? and make a simple test as above... hope this can help!
either microsoft style C:\directory\file.extension
or unix C:/directory/file.extension
HOWEVER :) you must be consistent in the command invocation, in other words, if you pick \ you must always use it, the same for /, example:
gcc -I..\include src\file.c -o bin\file.o -> OK
gcc -I../include src/file.c -o bin/file.o -> OK
gcc -I../include src\file.c -o bin\file.o -> NOT OK (include slash different from file)
Also note that mingw builds do not understand /cygdrive/c because there is no directory named cygdrive in the root of the drive where the binary exists.
Please try to check which gcc are you using is it mingw? is it cygwin? and make a simple test as above... hope this can help!