Linux program compilation problems

Source: Internet
Author: User
Linux program compilation-General Linux technology-Linux programming and kernel information. for details, refer to the following section. [Root @ localhost usb2] # make
Make-C/lib/modules/2.6.32-279. el6.i686/build M =/home/czx/arm-usb/usb2 modules
Make [1]: Entering directory '/usr/src/kernels/2.6.32-279. el6.i686'
CC [M]/home/czx/arm-usb/usb2/usb-skeleton-xiao.o
/Home/czx/arm-usb/usb2/usb-skeleton-xiao.c: In function 'skel _ write_bulk_callback ':
/Home/czx/arm-usb/usb2/usb-skeleton-xiao.c: 423: error: implicit declaration of function 'USB _ free_coherent'
/Home/czx/arm-usb/usb2/usb-skeleton-xiao.c: In function 'skel _ write ':
/Home/czx/arm-usb/usb2/usb-skeleton-xiao.c: 478: error: implicit declaration of function 'USB _ alloc_coherent'
/Home/czx/arm-usb/usb2/usb-skeleton-xiao.c: 479: warning: assignment makes pointer from integer without a cast
Make [2]: *** [/home/czx/arm-usb/usb2/usb-skeleton-xiao.o] Error 1
Make [1]: *** [_ module _/home/czx/arm-usb/usb2] Error 2
Make [1]: Leaving directory '/usr/src/kernels/2.6.32-279. el6.i686'
Make: *** [kernel_modules] Error 2


Usb_free_coheren is a function in usb. h. The file contains a usb. h file. what is the problem?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.