On Fri, Jul 16, 2004 at 05:23:15PM +0530, Amol Kailash wrote:
> Hi Greg,
> 
> You had mentioned that using
> 
>              gcc -c -Wall -D__KERNEL__ -DMODULE bluetooth.c
> is a wrong command to build an external module and this might be the reason
> for my problem. But this is the way I see external modules being compiled in
> various articles and tutorials. For eg: http://lwn.net/Articles/21823/

That example says "typically" and is also incorrect.

> Are there any other commands to compile external modules ? Could  you tell
> me or point me to where I can get more info on the same ?

Take a look at the full gcc line when you build a module in the kernel
source tree.  You will see that you missed a lot of different compiler
options that could be very important.

Good luck,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to