2008-02-26 01:14:18     Application code for the ppi 1

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-02-26 01:14:18     Application code for the ppi 1

Pranay Upadhyay (INDIA)

Message: 51641    Hello,

            I have got  the application code for the PPI 1 driver and want to open for PPI1 ,but I am getting the following error and i am nnot able to understand.

 

 

lissa.c:50:19: error: mathf.h: No such file or directory

lissa.c:51:22: error: bfin_ppi.h: No such file or directory

 

lissa.c: In function ‘draw_lissajous’:

lissa.c:280: warning: incompatible implicit declaration of built-in function ‘cos’

lissa.c:281: warning: incompatible implicit declaration of built-in function ‘sin’

lissa.c: In function ‘main’:

lissa.c:303: warning: incompatible implicit declaration of built-in function ‘exit’

lissa.c:309: warning: incompatible implicit declaration of built-in function ‘exit’

/tmp/ccADrBfU.o: In function `_draw_rectangle':

lissa.c:(.text+0xfa): undefined reference to `_draw_line'

lissa.c:(.text+0x112): undefined reference to `_draw_line'

lissa.c:(.text+0x128): undefined reference to `_draw_line'

lissa.c:(.text+0x13a): undefined reference to `_draw_line'

/tmp/ccADrBfU.o: In function `_draw_filled_rectangle':

lissa.c:(.text+0x178): undefined reference to `_draw_line'

/tmp/ccADrBfU.o: In function `_draw_lissajous':

lissa.c:(.text+0x268): undefined reference to `_cos'

lissa.c:(.text+0x2b4): undefined reference to `_sin'

collect2: ld returned 1 exit status

 

         So, please any one who know about this please reply.

 

                                     Thanks

                                                   - Pranay Upadhyay

QuoteReplyEditDelete

 

 

2008-02-26 01:56:04     Re: Application code for the ppi 1

Mike Frysinger (UNITED STATES)

Message: 51644    ive fixed building by default, but you've clearly made customizations which means you'll have to fix that

QuoteReplyEditDelete

 

 

2008-02-26 03:05:40     Re: Application code for the ppi 1

Pranay Upadhyay (INDIA)

Message: 51648    Thankyou Mike,

 

                   I have solve that problem with help of you.Now I am getting the following warnning, please see this and how will I solved this please reply.

 

[root@RamaFC6 lissa]# bfin-uclinux-gcc -Wl,-elf2flt lissa.c -o lissa

lissa.c: In function ‘main’:

lissa.c:317: warning: incompatible implicit declaration of built-in function ‘exit’

lissa.c:323: warning: incompatible implicit declaration of built-in function ‘exit’

/tmp/ccq2wBp8.o: In function `_draw_lissajous':

lissa.c:(.text+0x5a2): undefined reference to `_cos'

lissa.c:(.text+0x5ee): undefined reference to `_sin'

collect2: ld returned 1 exit status

[root@RamaFC6 lissa]#

                                Thanks

                                       -Pranay Upadhyay

QuoteReplyEditDelete

 

 

2008-02-26 03:22:51     Re: Application code for the ppi 1

Mike Frysinger (UNITED STATES)

Message: 51649    the Makefile adds the necessary libraries ... if you want to build it by hand, you need to replicate the way the makefile builds things

Attachments

    Outcomes