gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > [SOLVED] Palib and vc++ express, error in PA_Sound

#126390 - ZeXr0 - Sun Apr 22, 2007 7:55 pm

I tried to setup the palib environment with devkitpro and vc++ express, but when I compile I get this error.

1>------ D?but de la g?n?ration : Projet : PADemo2, Configuration : Release Win32 ------
1>Actions de projet Makefile en cours
1>logo.bmp
1>logo_wifi.bmp
1>main.cpp
1>c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h: In function 'void PA_PlayFSSoundEx2(u8, u16, u8, int, s16, BOOL, int)':
1>c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h(212): error: invalid conversion from 'void*' to 'u32*'
1>c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h: In function 'void PA_PlayFSMod(u16)':
1>c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h(430): error: invalid conversion from 'void*' to 'u32*'
1>make[1]: *** [main.o] Error 1
1>make: *** [build] Error 2
1>Le journal de g?n?ration a ?t? enregistr? ? l'emplacement "file://c:\DsDev\PADemo2\PADemo2\Release\BuildLog.htm"
1>PADemo2 - 2 erreur(s), 0 avertissement(s)
========== G?n?ration : 0 a r?ussi, 1 a ?chou?, 0 mis ? jour, 0 a ?t? ignor? ==========


Anyone knows how to solve this ?

EDIT :
Just go to the PA_Sound.h file, at the given lines, and add (u32*) in front of PA_Malloc

#126392 - LiraNuna - Sun Apr 22, 2007 8:38 pm

PA_Malloc? Do you guys have PA_main and PA_sprintf too?????
What about PA_newlib?

I've also heard of a new tool being programmed, called PA_exe2nds, sounds interesting.
_________________
Private property.
Violators will be shot, survivors will be shot again.

#126421 - Lynx - Mon Apr 23, 2007 4:40 am

Ignore LiraNuna. He's just mad because in about 15 seconds you'll have released more homebrew then him.. :)
_________________
NDS Homebrew Roms & Reviews

#126424 - tepples - Mon Apr 23, 2007 4:49 am

LiraNuna wrote:
PA_Malloc? Do you guys have PA_main and PA_sprintf too?????

Not too far off. A PC counterpart to PAlib is called the Allegro library, which uses a special main() (to normalize argc and argv even on Windows and UNIX where the conventions sometimes differ) and a special sprintf() (to work in UTF-8 rather than an 8-bit ISO encoding).

As for "exe2nds", that is possible. The dualSwan emulator contains an emulator for an 8086 clone CPU made by NEC. Take the 8086 core from dualSwan and wrap the IBM XT architecture around it, and then imagine lots of CGA games for MS-DOS becoming playable on DS. No, I'm not volunteering just yet.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#126460 - LiraNuna - Mon Apr 23, 2007 11:32 am

Quote:
The dualSwan emulator contains an emulator for an 8086 clone CPU made by NEC.

Oh really? You might want to take a look at dualSwan's homepage and then your address bar.

BTW, It's a 80186, and it wasn't made by NEC, it made by Bandai itself. The SPGY-1002 (or the SwanCrystal's SPGY-1003) are custom made chips which have the same excution properties of the NEC v30MZ which includes AAD and IMUL/IDUV flag properties as well as missing 8080 emulation mode (not to mention the extreamly LOW power consumation rate which made the WS/C run on a single AA battery for more then 15 hours).
I coded a 16bit CPU emulator, which was made to a WSC emulator afterwards.

Now seriously, don't you think PA_Malloc is a little stupid? not to mention that newlib's one works just as fine. asuming it's just a define (is it!?) that's a very stupid thing to do...
_________________
Private property.
Violators will be shot, survivors will be shot again.