forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

why the psp-g++ don`t accept the cygwin&MinGW style pat

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
leonliu



Joined: 15 Dec 2008
Posts: 5

PostPosted: Mon Dec 15, 2008 1:02 am    Post subject: why the psp-g++ don`t accept the cygwin&MinGW style pat Reply with quote

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
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Dec 16, 2008 3:25 am    Post subject: Reply with quote

Are you running psp-g++ from a windows command prompt, or a cygwin command prompt?
Back to top
View user's profile Send private message Visit poster's website
leonliu



Joined: 15 Dec 2008
Posts: 5

PostPosted: Wed Dec 17, 2008 1:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Dec 18, 2008 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Fri Dec 19, 2008 4:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group