From: Ed Hall <edhall@screech.weirdnoise.com>
To: Brendan Miller <brmiller@netgate.net>
Cc: "Dr. David Gilbert" <dg@px.uk.com>, axp-list@redhat.com
Subject: Re: QuickCam on DEC Multia
Date: Mon, 12 Jul 1999 22:04:42 -0700 [thread overview]
Message-ID: <199907130504.WAA01699@screech.weirdnoise.com> (raw)
In-Reply-To: Your message of "Mon, 12 Jul 1999 21:04:22 PDT." <19990712210422.B2862@netgate.net>
> It's a linker thing--an unresolved external--so I don't think adding
> a header file is going to help...
Of course, if inb() is a macro (which it is), leaving out the header
file which contains it (<asm/io.h>, in this case) will result in an
undefined external. When the file is included, the "call" to inb()
is macro-processed into appropriate inline instructions and no function
call is made--and so no undefined external.
Just one example of why the C pre-processor is evil. :-)
-Ed
next prev parent reply other threads:[~1999-07-13 5:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-08 4:21 QuickCam on DEC Multia Brendan Miller
1999-07-08 5:42 ` Brendan Miller
[not found] ` <378445F7.FC3E8A5@xmission.com>
1999-07-12 3:56 ` Brendan Miller
1999-07-12 8:26 ` Dr. David Gilbert
1999-07-12 10:36 ` phil-lists
1999-07-13 4:04 ` Brendan Miller
1999-07-13 5:04 ` Ed Hall [this message]
1999-07-13 8:50 ` phil-lists
-- strict thread matches above, loose matches on Subject: below --
1999-07-08 4:18 Norman W. Schaeffler
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox