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

Developer

Forums

hi all

will anybody tell me what type of error is in blow errorLog file?

rm -f AEEModGen.o AEEAppGen.o GCCResolver.o nescafe.o nescafe.o nescafe.elf nescafe.mod
------------------------------------
C:\gnude/bin/arm-elf-gcc.exe -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/3.1.4/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o AEEModGen.o C:\gnude/3.1.4/src/AEEModGen.c
C:\gnude/bin/arm-elf-gcc.exe -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/3.1.4/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o AEEAppGen.o C:\gnude/3.1.4/src/AEEAppGen.c
C:\gnude/bin/arm-elf-gcc.exe -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/3.1.4/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o GCCResolver.o C:\gnude/GCCResolver.c
C:\gnude/bin/arm-elf-gcc.exe -c -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/3.1.4/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o nescafe.o nescafe.c
nescafe.c: In function `nescafe_DrawScreen':
nescafe.c:245: warning: initialization from incompatible pointer type
nescafe.c: In function `deaw_control':
nescafe.c:304: warning: passing arg 4 of pointer to function from incompatible pointer type
nescafe.c:306: warning: passing arg 2 of pointer to function from incompatible pointer type
C:\gnude/bin/arm-elf-ld.exe -Ttext 0 --emit-relocs -entry AEEMod_Load -o nescafe.elf -LC:\gnude/lib/gcc-lib/arm-elf/3.3 \
AEEModGen.o AEEAppGen.o GCCResolver.o nescafe.o nescafe.o -lgcc
nescafe.o(.text+0x0): In function `AEEClsCreateInstance':
: multiple definition of `AEEClsCreateInstance'
nescafe.o(.text+0x0): first defined here
nescafe.o(.text+0x288): In function `nescafe_InitAppData':
: multiple definition of `nescafe_InitAppData'
nescafe.o(.text+0x288): first defined here
nescafe.o(.text+0x32c): In function `nescafe_FreeAppData':
: multiple definition of `nescafe_FreeAppData'
nescafe.o(.text+0x32c): first defined here
C:\gnude/bin/arm-elf-ld: cannot find -lgcc
make: *** [nescafe.elf] Error 1
------------------------------------

Also i want to know how we can identify the reason for error as it is in somewhat odd format?

thanks
ketan

It looks like you have a number of warnings that could be issues, but you can't really tell without looking at the code. The more serious warning is that you are trying to include nescafe.o twice in the call to the linker, so you probably should remove one of those. And finally, the error is that the linker can't find the gcc lib file. That should probably should have been installed with the gcc compiler, so it's probably just a library path issue. Find where that library file is and make sure that it's included in the library path in your make file.

It looks like you have a number of warnings that could be issues, but you can't really tell without looking at the code. The more serious warning is that you are trying to include nescafe.o twice in the call to the linker, so you probably should remove one of those. And finally, the error is that the linker can't find the gcc lib file. That should probably should have been installed with the gcc compiler, so it's probably just a library path issue. Find where that library file is and make sure that it's included in the library path in your make file.

thanks a lot
its working ...... i have created .mod file successfully
but for more than one .c/.h files the complier show error msg
make: *** No rule to make target `project.o', needed by `project_isms.elf'. Stop.
my app contain 5 files . i have addes all these files to ADD_OBJ in GCCMakefile
the files are
database.c
project.h
project_isms.c
display_main.c
see it doesnot show error msg for .c files it only shows msg for header file
ques is where am i supposed to place this header file? all these files are in parent directory (C:\Program Files\BREW 3.1.4\sdk\examples\project_isms)
pls help me
ketan

thanks a lot
its working ...... i have created .mod file successfully
but for more than one .c/.h files the complier show error msg
make: *** No rule to make target `project.o', needed by `project_isms.elf'. Stop.
my app contain 5 files . i have addes all these files to ADD_OBJ in GCCMakefile
the files are
database.c
project.h
project_isms.c
display_main.c
see it doesnot show error msg for .c files it only shows msg for header file
ques is where am i supposed to place this header file? all these files are in parent directory (C:\Program Files\BREW 3.1.4\sdk\examples\project_isms)
pls help me
ketan

Do you have a project.c file? You say that you only have project.h, which doesn't need to have an object (.o) file generated for it. In that case you probably should just remove project.o from the linker command.

Do you have a project.c file? You say that you only have project.h, which doesn't need to have an object (.o) file generated for it. In that case you probably should just remove project.o from the linker command.