Skip to contentSkip to conversation

mod_devicetable.h

compilation err Paweł Sikora 2 participants 2 messages Jun 2, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

when I compile keagle (http://damien.bergamini.free.fr/ueagle/keagle.html)
g++3.4.0 reports an error on .../include/linux/mod_devicetable.h:18

struct pci_device_id {
__u32 vendor, device; /* Vendor and device ID or PCI_ANY_ID*/
__u32 subvendor, subdevice; /* Subsystem ID's or PCI_ANY_ID */
__u32 class, class_mask; /* (class,subclass,prog-if) triplet */
^^^^^
mod_devicetable.h:18: error: expected identifier before ',' token mod_devicetable.h:18: error: expected unqualified-id before ',' token

I can use mod_devicetable.h in userspace and c++ too. Using a c++'s keywords as a var-names is a very bad idea.

Best regards, Paul.

Signature · 2 lines
If you think of MS-DOS as mono, and Windows as stereo,
  then Linux is Dolby Digital and all the music is free...
#1 lore raw
Quoted 2 lines · Paweł Sikora

I can use mod_devicetable.h in userspace and c++ too. Using a c++'s keywords as a var-names is a very bad idea.

You can't as you just noticed :)