Compiling C++ PRXs

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Compiling C++ PRXs

Post by 71M »

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
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Learn how to use

Code: Select all

extern "C"
when mixing C and C++ code.
71M
Posts: 122
Joined: Tue Jun 21, 2005 5:28 am
Location: London

Post by 71M »

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
Post Reply