| View previous topic :: View next topic |
| Author |
Message |
leonliu
Joined: 15 Dec 2008 Posts: 5
|
Posted: Mon Dec 15, 2008 1:02 am Post subject: why the psp-g++ don`t accept the cygwin&MinGW style pat |
|
|
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!!!! |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Dec 16, 2008 3:25 am Post subject: |
|
|
| Are you running psp-g++ from a windows command prompt, or a cygwin command prompt? |
|
| Back to top |
|
 |
leonliu
Joined: 15 Dec 2008 Posts: 5
|
Posted: Wed Dec 17, 2008 1:12 pm Post subject: |
|
|
| ooPo wrote: | | Are you running psp-g++ from a windows command prompt, or a cygwin command prompt? |
I was running psp-g++ from cygwin command prompt. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Dec 18, 2008 12:04 am Post subject: |
|
|
| My only other guess would be that you're running a pre-built toolchain meant for mingw or whatever they use to let you build it directly into a windows binary. |
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Fri Dec 19, 2008 4:59 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
|