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 

Compiling C++ PRXs

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



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Tue Aug 23, 2005 8:59 pm    Post subject: Compiling C++ PRXs Reply with quote

Does anyone know if it's possible to compile a PRX using C++?
I'm getting a compile error, don't have it to hand at the moment, but it was complaining about 'module_start' not being found.

Thanks,
71M
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Aug 24, 2005 1:35 am    Post subject: Reply with quote

Learn how to use
Code:
extern "C"
when mixing C and C++ code.
Back to top
View user's profile Send private message
71M



Joined: 21 Jun 2005
Posts: 122
Location: London

PostPosted: Wed Aug 24, 2005 3:46 am    Post subject: Reply with quote

Doh!!!
Of course, putting extern "C" around the functions that're being exported in main.cpp did the trick.

How silly do I feel :)

Thanks,
71M
Back to top
View user's profile Send private message
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