| View previous topic :: View next topic |
| Author |
Message |
drcd
Joined: 04 Dec 2005 Posts: 22
|
Posted: Wed Jun 21, 2006 6:07 am Post subject: Can't compile a c++ project with OSLib |
|
|
Hi everyone
I have a little problem OSLib. I would like to do my project in C++ but when i compile it, i've got an error saying that type bool is redefined in oslib.h. That's true and i want to do #ifdef or just leave the redefintion in the oslib.H but may i? |
|
| Back to top |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Fri Jun 23, 2006 10:38 pm Post subject: |
|
|
That's my fault, I've still not released the fix for C++ in OSLib. I'll release a patch soon.
Anyway you can comment the bool typedef, but you also have to add extern "C" surrounding functions prototypes. _________________ Sorry for my bad english
Oldschool library for PSP - PC version released |
|
| Back to top |
|
 |
drcd
Joined: 04 Dec 2005 Posts: 22
|
Posted: Fri Jun 23, 2006 10:57 pm Post subject: |
|
|
Ok thx.
Great lib!!! |
|
| Back to top |
|
 |
drcd
Joined: 04 Dec 2005 Posts: 22
|
Posted: Sat Jun 24, 2006 5:17 am Post subject: |
|
|
| Brunni i have another problem. I deleted the typedef and i put extern "C" for the include but now when i compile your sample, i have got a multiple definition of oslpowercallback and now i can't delete it cause it's in the .o. |
|
| Back to top |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Sat Jun 24, 2006 8:05 am Post subject: |
|
|
I don't know then. But it works with the new version, I'll try to release at least an intermediate version tomorrow ;-) _________________ Sorry for my bad english
Oldschool library for PSP - PC version released |
|
| Back to top |
|
 |
Brunni
Joined: 08 Oct 2005 Posts: 186
|
Posted: Sun Jun 25, 2006 7:13 pm Post subject: |
|
|
New version released. C++ should be okay now :-) _________________ Sorry for my bad english
Oldschool library for PSP - PC version released |
|
| Back to top |
|
 |
drcd
Joined: 04 Dec 2005 Posts: 22
|
Posted: Sun Jun 25, 2006 7:29 pm Post subject: |
|
|
| Héhé thx. |
|
| Back to top |
|
 |
|