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

# Developer

## Forums

### Forums:

Hi all,
following the instructions on http://brew.wardco.com/. i am trying to compile my application.
used this cmd sequence to complie
\winarm\bin\arm-elf-gcc.exe
-mlittle-endian
-mcpu=arm7tdmi
-mapcs-frame
-fno-builtin
-ffunction-sections
-DDYNAMIC_APP
-I "C:\Program Files\BREW 3.1.5\sdk\inc"
-o AEEModGen.o -c AEEModGen.c (AEEAppGen.c and other 2 sources in similar way)

Now i am trying to link with given linker script like this

C:\WinARM\bin>arm-elf-ld.exe
--script armelf.brew
--emit-relocs
--no-warn-mismatch
-L "C:\winarm\lib
\gcc\arm-elf\4.1.1\thumb
-lgcc -o "mediaplayer.elf"
AEEAppGen.o AEEMediaUtil.o mediaplayer.o

I have tried with different linker as well C:\winarm\lib
\gcc\arm-elf\4.1.1\interwork

My make file is default one. i am getting the linking error

AEEModGen.o: In function `AEEMod_CreateInstance':
AEEModGen.c:(.text.AEEMod_CreateInstance+0x7c): undefined reference to `AEEClsCreateInstance'

What can be the problem??

thx

Hi, i got wat the problem was.
It seems you have to compile gccresolver.c which comes with elf2mod utility and include its object while linking. now i am able to generate a mod.

Hi, i got wat the problem was.
It seems you have to compile gccresolver.c which comes with elf2mod utility and include its object while linking. now i am able to generate a mod.