This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compile error: defined both normally and as an alias


Hello

Has anyone had this error?
"
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.cxx:1
29: `
   int getc(CYG_ADDRESS (*)[9999])' defined both normally and as an alias
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.cxx:1
29: weak
   declaration of `int getc(CYG_ADDRESS (*)[9999])' must precede definition
make[1]: *** [src/input/fgetc.o.d] Error 1
"

* gcc 3.1, binutils 2.12.1

Regards,
David Marqvar

---
Full output:

make[1]: Entering directory
`/home/dam/eCos-work/Test4_build/language/c/libc/stdio/current'
mipsisa32-elf-gcc -c  -I/home/dam/eCos-work/untitled_install/include
-I/home/dam/eCos2/packages/language/c/libc/stdio/current
-I/home/dam/eCos2/packages/language/c/libc/stdio/current/src
-I/home/dam/eCos2/packages/language/c/libc/stdio/current/tests -I.
-I/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/ -mips32
-EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef
-Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti
-fno-exceptions -fvtable-gc -finit-priority -G0 -Wp,-MD,src/input/fgetc.tmp
-o src/input/language_c_libc_stdio_fgetc.o
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.cxx
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.cxx:1
29: `
   int getc(CYG_ADDRESS (*)[9999])' defined both normally and as an alias
/home/dam/eCos2/packages/language/c/libc/stdio/current/src/input/fgetc.cxx:1
29: weak
   declaration of `int getc(CYG_ADDRESS (*)[9999])' must precede definition
make[1]: *** [src/input/fgetc.o.d] Error 1
make[1]: Leaving directory
`/home/dam/eCos-work/Test4_build/language/c/libc/stdio/current'
make: *** [build] Error 2

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]