[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Re: how to compile mutilble C files with a multible headers in Uclinux platform




hello sir ,
this is output
make
ucfront-gcc microblaze-uclinux-gcc  -c -Iinclude-lm -o obj/annexb.o allfiles/annexb.c
allfiles/annexb.c:15:20: global.h: No such file or directory
allfiles/annexb.c:16:20: annexb.h: No such file or directory
allfiles/annexb.c:17:22: memalloc.h: No such file or directory
allfiles/annexb.c:21: error: parse error before '*' token
allfiles/annexb.c: In function `malloc_annex_b':
allfiles/annexb.c:23: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:23: error: (Each undeclared identifier is reported only once
allfiles/annexb.c:23: error: for each function it appears in.)
allfiles/annexb.c:23: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:23: error: parse error before ')' token
allfiles/annexb.c:26: error: `errortext' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:28: error: parse error before '}' token
allfiles/annexb.c:30: error: parse error before '*' token
allfiles/annexb.c: In function `init_annex_b':
allfiles/annexb.c:32: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:33: error: `NULL' undeclared (first use in this function)
allfiles/annexb.c:36: error: `FALSE' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:41: error: parse error before '*' token
allfiles/annexb.c: In function `free_annex_b':
allfiles/annexb.c:43: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:44: error: `NULL' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:53: error: parse error before '*' token
allfiles/annexb.c: In function `getChunk':
allfiles/annexb.c:55: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:58: error: `TRUE' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:74: error: parse error before "getfbyte"
allfiles/annexb.c:74: error: parse error before '*' token
allfiles/annexb.c: In function `getfbyte':
allfiles/annexb.c:76: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:139: error: parse error before '*' token
allfiles/annexb.c: In function `GetAnnexbNALU':
allfiles/annexb.c:141: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:141: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:141: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:146: error: `byte' undeclared (first use in this function)
allfiles/annexb.c:146: error: `pBuf' undeclared (first use in this function)
allfiles/annexb.c:148: error: parse error before ')' token
allfiles/annexb.c:172: error: `TRUE' undeclared (first use in this function)
allfiles/annexb.c:195: error: `nalu' undeclared (first use in this function)
allfiles/annexb.c:227: error: `NalRefIdc' undeclared (first use in this function)
allfiles/annexb.c:228: error: `NaluType' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:310: error: parse error before '*' token
allfiles/annexb.c: In function `OpenAnnexBFile':
allfiles/annexb.c:312: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:312: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:312: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:313: error: `NULL' undeclared (first use in this function)
allfiles/annexb.c:317: error: `fn' undeclared (first use in this function)
allfiles/annexb.c:317: error: `OPENFLAGS_READ' undeclared (first use in this function)
allfiles/annexb.c:319: error: `errortext' undeclared (first use in this function)
allfiles/annexb.c:319: error: `ET_SIZE' undeclared (first use in this function)
allfiles/annexb.c:322: error: `byte' undeclared (first use in this function)
allfiles/annexb.c:327: error: `FALSE' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:338: error: parse error before '*' token
allfiles/annexb.c: In function `CloseAnnexBFile':
allfiles/annexb.c:340: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:340: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:340: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:347: error: `NULL' undeclared (first use in this function)
make: *** [obj/annexb.o] Error 1
[petalinux@localhost ldecod]$ make clean
rm -f H264dec *.elf *.gdb obj/*.o
[petalinux@localhost ldecod]$ make
ucfront-gcc microblaze-uclinux-gcc  -c -Iinclude-lm -o obj/annexb.o allfiles/annexb.c
allfiles/annexb.c:15:20: global.h: No such file or directory
allfiles/annexb.c:16:20: annexb.h: No such file or directory
allfiles/annexb.c:17:22: memalloc.h: No such file or directory
allfiles/annexb.c:21: error: parse error before '*' token
allfiles/annexb.c: In function `malloc_annex_b':
allfiles/annexb.c:23: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:23: error: (Each undeclared identifier is reported only once
allfiles/annexb.c:23: error: for each function it appears in.)
allfiles/annexb.c:23: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:23: error: parse error before ')' token
allfiles/annexb.c:26: error: `errortext' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:28: error: parse error before '}' token
allfiles/annexb.c:30: error: parse error before '*' token
allfiles/annexb.c: In function `init_annex_b':
allfiles/annexb.c:32: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:33: error: `NULL' undeclared (first use in this function)
allfiles/annexb.c:36: error: `FALSE' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:41: error: parse error before '*' token
allfiles/annexb.c: In function `free_annex_b':
allfiles/annexb.c:43: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:44: error: `NULL' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:53: error: parse error before '*' token
allfiles/annexb.c: In function `getChunk':
allfiles/annexb.c:55: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:58: error: `TRUE' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:74: error: parse error before "getfbyte"
allfiles/annexb.c:74: error: parse error before '*' token
allfiles/annexb.c: In function `getfbyte':
allfiles/annexb.c:76: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:139: error: parse error before '*' token
allfiles/annexb.c: In function `GetAnnexbNALU':
allfiles/annexb.c:141: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:141: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:141: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:146: error: `byte' undeclared (first use in this function)
allfiles/annexb.c:146: error: `pBuf' undeclared (first use in this function)
allfiles/annexb.c:148: error: parse error before ')' token
allfiles/annexb.c:172: error: `TRUE' undeclared (first use in this function)
allfiles/annexb.c:195: error: `nalu' undeclared (first use in this function)
allfiles/annexb.c:227: error: `NalRefIdc' undeclared (first use in this function)
allfiles/annexb.c:228: error: `NaluType' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:310: error: parse error before '*' token
allfiles/annexb.c: In function `OpenAnnexBFile':
allfiles/annexb.c:312: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:312: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:312: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:313: error: `NULL' undeclared (first use in this function)
allfiles/annexb.c:317: error: `fn' undeclared (first use in this function)
allfiles/annexb.c:317: error: `OPENFLAGS_READ' undeclared (first use in this function)
allfiles/annexb.c:319: error: `errortext' undeclared (first use in this function)
allfiles/annexb.c:319: error: `ET_SIZE' undeclared (first use in this function)
allfiles/annexb.c:322: error: `byte' undeclared (first use in this function)
allfiles/annexb.c:327: error: `FALSE' undeclared (first use in this function)
allfiles/annexb.c: At top level:
allfiles/annexb.c:338: error: parse error before '*' token
allfiles/annexb.c: In function `CloseAnnexBFile':
allfiles/annexb.c:340: error: `ANNEXB_t' undeclared (first use in this function)
allfiles/annexb.c:340: error: `annex_b' undeclared (first use in this function)
allfiles/annexb.c:340: error: `p_Vid' undeclared (first use in this function)
allfiles/annexb.c:347: error: `NULL' undeclared (first use in this function)
make: *** [obj/annexb.o] Error 1



On Tue, Nov 17, 2009 at 4:13 AM, John Williams <john.williams@xxxxxxxxxxxxx> wrote:
On Mon, Nov 16, 2009 at 6:23 PM, Ranga Babu P <p.rangababu@xxxxxxxxx> wrote:
> hello sir,
> Iam using petalinux -0.40 source I have a problem in compiling and linking C
> files .I created a hello world application it works well .I took a complex
> application .Icopied all cfiles and headers in single direcory  and compile
> .It compilles correctly but gives errors in linkage .How can i add
> dependency in ur make file that consists multible headers and multiple
> Cfiles.

You still have not posted the error output from your attempt, nor have
you described the attempts you made to solve your own problem.

Your question is about how to write a Makefile - there are many, many
sources of information about it on the internet.

I wasn't joking when I asked you to read that link about "Asking good
questions".  If you keep asking questions and nobody replies you
should wonder if there is a problem with your approach to asking.

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/




--
Rangababu(Research scholar)
School of Physics
University of Hyderbad
Hyderabad.500046