WinArm compilation error in AEEComDef.h | developer.brewmp.com WinArm compilation error in AEEComDef.h | developer.brewmp.com

Developer

WinArm compilation error in AEEComDef.h

Hi All,

I am trying to build a simple application using WinArm compiler. I am getting some strange kind of error in AEEComDef.h. The strange fact is any file I try to compile it gives error at some non existent line number in the file AEEComDef.h. I have set all the environment variables like GCCPHOME ans GCCLIBPATH etc, and I am using BREW SDK v 3.1.5.

Below are the compilation command and respective output.

arm-elf-gcc.exe -mlittle-endian -mcpu=arm7tdmi -mapcs-frame -fno-builtin -ffunction-sections -DDEBUG -DDYNAMIC_APP -I "C:\Program Files\BREW 3.1.5\sdk\inc" -I "C:\Program Files\BREW 3.1.5\inc" -o AEEAppGen.o -c AEEAppGen.c

--------Output--------------------------------------

In file included from C:\Program Files\BREW 3.1.5\sdk\inc/AEE.h:24,
from AEEAppGen.c:26:
C:\Program Files\BREW 3.1.5\sdk\inc/AEEComdef.h:292: error: expected '=', ',', '
;', 'asm' or '__attribute__' before 'int64'
C:\Program Files\BREW 3.1.5\sdk\inc/AEEComdef.h:293: error: expected '=', ',', '
;', 'asm' or '__attribute__' before 'uint64'
In file included from C:\Program Files\BREW 3.1.5\sdk\inc/../../inc/AEEDateTime.
h:14,
from C:\Program Files\BREW 3.1.5\sdk\inc/AEE.h:33,
from AEEAppGen.c:26:
C:\Program Files\BREW 3.1.5\sdk\inc/../../inc/AEEStdDef.h:104: error: redefiniti
on of typedef 'AEECLSID'
C:\Program Files\BREW 3.1.5\sdk\inc/AEEComdef.h:335: error: previous declaration
of 'AEECLSID' was here
C:\Program Files\BREW 3.1.5\sdk\inc/../../inc/AEEStdDef.h:114: error: redefiniti
on of typedef 'AECHAR'
C:\Program Files\BREW 3.1.5\sdk\inc/AEEComdef.h:336: error: previous declaration
of 'AECHAR' was here
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1'
Stop.

====================================================
Second command

arm-elf-g++.exe -mlittle-endian -mcpu=arm7tdmi -mapcs-frame -fno-builtin -ffunction-sections -DDEBUG -DDYNAMIC_APP -I "C:\Program Files\BREW 3.1.5\sdk\inc" -I "C:\Program Files\BREW 3.1.5\inc" -o helloworld.o -c helloworld.cpp

--------Output--------------------------------------

C:\Program Files\BREW 3.1.5\sdk\inc/AEEComdef.h:292: error: '__int64' does not n
ame a type
C:\Program Files\BREW 3.1.5\sdk\inc/AEEComdef.h:293: error: '__int64' does not n
ame a type
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1'
Stop.

I am very confused why such an error at non existent line number is shown. AEEComDef.h file has only 260 lines.

Regards,

use the below code for GCC compilation
#include
typedef int64 int64_t;
typedef uint16 uint16_t;

use the below code for GCC compilation
#include
typedef int64 int64_t;
typedef uint16 uint16_t;

Thanks for the reply, but can you tell me where should I put this code? in which file?
Moreover I am not using int64 anywhere in my code, I dont know why its giving such an error.

Thanks for the reply, but can you tell me where should I put this code? in which file?
Moreover I am not using int64 anywhere in my code, I dont know why its giving such an error.

put this code in AEEComdef.h

put this code in AEEComdef.h