Re: Could someone please answer a stupid question...

From: Roger Larsson (roger.larsson_at_norran.net)
Date: 08/08/03


Date: Thu, 07 Aug 2003 22:34:41 GMT

jahurt@hotmail.com wrote:

> I have the following bare-bones kernel module...
> ------------------------------------------------------
> #ifndef __KERNEL__
> #define __KERNEL__
> #define MODULE
> #include <linux/module.h>

This is taken from the computer you compile at...
And does not match the targets.

You should/could set up a mirror of the target in some directory
(like ~/target) and then compile with

 gcc -nostdinc -I ~/target/include -nostdlib ...

/RogerL

-- 
Roger Larsson
Skellefteċ
Sweden


Relevant Pages

  • Re: fortran equivalent of c memset
    ... use to very efficiently zero an array of memory? ... For some targets where it can be done efficiently, Fortran does actually compile code which zeroes a contiguous array into a memsetcall. ... On many targets, the extra overhead of dealing with odd byte alignments, as memsetmust do, is better avoided by simply assigning 0 to an array, as suggested in another response. ...
    (comp.lang.fortran)
  • Re: Problem with a batch build script
    ... I can compile a bunch of files into libExample.a by simply doing ... us do not consider this aspect of the makefile dependencies a ... dependencies described by the makefile became an essential part of ... dependencies for subsequent targets. ...
    (comp.lang.fortran)
  • Re: Compiling source code out of the blue
    ... source code where I'd prefer to receive a binary, I just want to compile ... targets. ... there any standard kind of makefile, or do all compilers have a different ... but with meaningful warnings and still generate ...
    (comp.lang.c)
  • Re: CrossKylix discontinued
    ... but you can compile all of the targets from a single operating ... I don't know how succesful it is, ...
    (borland.public.delphi.non-technical)
  • Re: Makefile question: One rule generating multiple files
    ... compile some_sources ... Or do not all make's accept multiple files as targets? ... Beratung in objektorientierter Datenverarbeitung ...
    (comp.unix.programmer)