Hello,
I thought when creating a struct, I could call it anything I want. However, in the line:
static struct usb_device_id usbtmc_devices[] = {...
my compiler gives me "unable to resolve identifier 'usb_device_id'". Are struct names supposed to be defined somewhere else?
kent.johnstone_1
0
Light Poster
Recommended Answers
Jump to PostAre struct names supposed to be defined somewhere else?
Yes. When you declare a variable that is an instance of
usb_device_id
, you must first tell the compiler somewhere else what ausb_device_id
is. If you have already written a declaration of this struct, we might have to see …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.