2009-02-04 09:26:32     Compilation error when integrating code in crc32.c

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

2009-02-04 09:26:32     Compilation error when integrating code in crc32.c

Appalayagari Sreedhar (INDIA)

Message: 68850   

 

Hi,

 

I am working with custom board BF533 and u-boot-1.1.6. Bootmode connected to 00 In my board Flash 8MB is connected to to the AMS#0 only.

 

Flash higher order address lines are controlled with 3 latch bits.  While booting from flash for reading data from 2-7 MB i need to toggle the latch bits I have integrated the code in crc32.c file for toggling the latch bits for selecting the higher order address lines for flash in CRC check. But it is showing compilation error.

 

can someone tell me what i am doing wrong?  I am pasting the error output.

 

crc32.c:190: warning: implicit declaration of function Toggle_Latch_Bitsâ

crc32.c:286:1: warning: C++ style comments are not allowed in ISO C90

crc32.c:286:1: warning: (this will be reported only once per input file)

gcc -Wall -pedantic -idirafter /home/sreedhar/Work/Release/uboot_RFU_Dec10/include -idirafter /home/sreedhar/Work/Release/uboot_RFU_Dec10/include2 -idirafter /home/sreedhar/Work/Release/uboot_RFU_Dec10/include -DTEXT_BASE=do-not-use-me -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o

crc32.o: In function `crc32':

/home/sreedhar/Work/Release/uboot_RFU_Dec10/tools/crc32.c:190: undefined reference to `Toggle_Latch_Bits'

/home/sreedhar/Work/Release/uboot_RFU_Dec10/tools/crc32.c:193: undefined reference to `Toggle_Latch_Bits'

/home/sreedhar/Work/Release/uboot_RFU_Dec10/tools/crc32.c:196: undefined reference to `Toggle_Latch_Bits'

/home/sreedhar/Work/Release/uboot_RFU_Dec10/tools/crc32.c:199: undefined reference to `Toggle_Latch_Bits'

/home/sreedhar/Work/Release/uboot_RFU_Dec10/tools/crc32.c:202: undefined reference to `Toggle_Latch_Bits'

crc32.o:/home/sreedhar/Work/Release/uboot_RFU_Dec10/tools/crc32.c:205: more undefined references to `Toggle_Latch_Bits' follow

 

Best Regards, Sreedhar.

QuoteReplyEditDelete

 

 

2009-02-04 10:10:16     Re: Compilation error when integrating code in crc32.c

Mike Frysinger (UNITED STATES)

Message: 68852   

 

"Toggle_Latch_Bits" is a func you wrote, so you need to provide it when linking

Attachments

    Outcomes