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 

c++ question

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



Joined: 29 Apr 2006
Posts: 9
Location: Gainesville, FL

PostPosted: Sat Apr 29, 2006 4:26 pm    Post subject: c++ question Reply with quote

Hi Hi Hi Hi Hi

I'm psyched about learning to code w/ my psp an I've completed a couple of yeldarb's tutorials,( http://www.scriptscribbler.com/psp/tutorials ) but his are in C and LUA and while I intend to later familiarize myself with these languages, I've got a pretty good foundation with C++ at the moment and would prefer using that for my first original programs.

Now, I've set up cygwin, updated it, installed the psp toolchain and all the preliminary stuff as well as compiled a few programs by following allong w/ the tutorials, but at this point, I'd like to swtich over to C++. HOW EXACTLY should I do this? Is there anything I need to change or include within the makefile or headings of my source?
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
PeterM



Joined: 31 Dec 2005
Posts: 125
Location: Edinburgh, UK

PostPosted: Sat Apr 29, 2006 11:47 pm    Post subject: Reply with quote

You really need to learn programming on a PC before going for the PSP. Otherwise you're letting yourself in for lots of pain and late nights.

Try googling for "C++ FAQ Lite", "Thinking in C++" to learn C++.
Back to top
View user's profile Send private message Visit poster's website
Hale



Joined: 29 Apr 2006
Posts: 9
Location: Gainesville, FL

PostPosted: Sun Apr 30, 2006 2:45 am    Post subject: Reply with quote

Granted I'm still an ameture, but I know the basic ins and outs of C++ already as well as most of the early concepts. I've compiled about 40 original (and pretty useless) programs for the pc via the programming course at my collge which was a breeze.

my questions were more directed at the process of compiling for the psp, using cygwin. I guess I should just experiment w/ it to find out.

Thanks for the links though.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sun Apr 30, 2006 5:37 am    Post subject: Reply with quote

just include this in your makefile

CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
LIBS = -lstdc++

make sure -lstdc++ is after all your pspsdk libs
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
Hale



Joined: 29 Apr 2006
Posts: 9
Location: Gainesville, FL

PostPosted: Sun Apr 30, 2006 6:22 am    Post subject: Reply with quote

thanks =) I'll try making something right now.
Back to top
View user's profile Send private message Visit poster's website AIM Address 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