Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

WinARM doesn't seem to like AEEOldVaList_To_va_list. I can't just not include the file, because it's included from AEEAppGen.c. Others here seem not to be encountering this problem -- any idea what I'm doing wrong?

OBJECT AEEModGen.o
C:\WinARM\bin\arm-elf-gcc -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mlittle-endian -fshort-enums -fno-builtin -ffunction-sections -g -D_DEBUG -IC:\PROGRA~1\BREWSD~1.4\sdk\inc -IC:\WinARM\lib\gcc\arm-elf\4.1.1\include -IC:\WinARM\arm-elf\include -O2 -IC:\PROGRA~1\BREWSD~1.4\sdk\inc -IC:\WinARM\lib\gcc\arm-elf\4.1.1\include -IC:\WinARM\arm-elf\include -o AEEModGen.o C:\PROGRA~1\BREWSD~1.4\sdk\src\AEEModGen.c
In file included from C:\PROGRA~1\BREWSD~1.4\sdk\inc/AEEStdLib.h:18,
from C:\PROGRA~1\BREWSD~1.4\sdk\inc/AEEHeap.h:40,
from C:\PROGRA~1\BREWSD~1.4\sdk\src\AEEModGen.c:33:
C:\PROGRA~1\BREWSD~1.4\sdk\inc/AEEOldVaList.h: In function 'AEEOldVaList_To_va_list':
C:\PROGRA~1\BREWSD~1.4\sdk\inc/AEEOldVaList.h:63: warning: dereferencing 'void *' pointer
C:\PROGRA~1\BREWSD~1.4\sdk\inc/AEEOldVaList.h:63: error: invalid use of void expression
NMAKE : fatal error U1077: 'C:\WinARM\bin\arm-elf-gcc.EXE' : return code '0x1'
Stop.

Hey Bekenn,
Have you got any solution for this problem?

Hey Bekenn,
Have you got any solution for this problem?

Modify aeeoldvalist.h like this:
#elif defined(AEEOLDVALIST_ARM_ATPCS)
//*(*args) = *aee_args;
*args = (va_list)aee_args;

Modify aeeoldvalist.h like this:
#elif defined(AEEOLDVALIST_ARM_ATPCS)
//*(*args) = *aee_args;
*args = (va_list)aee_args;