Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function declaration of undefined type 1

Status
Not open for further replies.

ggxpt

Technical User
Feb 23, 2011
2
US
I am trying to interpret the following line of code:

dc1394_t* dc1394_new (void);

I read this as a function with void argument, which returns a pointer to type dc1394_t

The problem is that there is no reference to or definition of the type dc1394_t. Is there some other interpretation of this line?
Thanks
 
Ah - good old firewire.

Problem here is that because it is C and not C++, it is most probably a typedef or a #define somewhere. Try this, to find out what it is.
Code:
typedef int dc1394_t;
It will probably build OK but fail on linking because the prototypes don't match up. The failure will tell you what dc1394 is defined as.

 
Is this from libdc1394? If it is, just get the latest version and do an install. It will configure everything correctly.

Another alternative

typedef struct __dc1394_t dc1394_t;

This is in camera.h. The definition is in internal.h
 
That was it - indeed, it is from libdc1394, and I did find it within internal.h (I didn't see the trail connecting this to camera.h) - I am trying to port this to an xcode application... Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top