|
ianmac28sco
1 post
 Popping In
|
16-05-2008 10:16
Hi, I've found a problem building webradio from source off the CD. An error is raised during the compile of receiver.c. The problem is that the compiler doesn't like the RECEIVERINFO type being used before it is defined later in the file. I've solved the problem by forward declaring the RECEIVERINFO struct. But there may be a better fix by modifying the compiler parameters in the makefile. I fixed this problem by modifying the receiver.h file. I modified:- typedef struct _RECEIVERPLUGIN { int (*rp_create) (RECEIVERINFO * rip); int (*rp_setup) (RECEIVERINFO * rip, STATIONINFO *sip); } RECEIVERPLUGIN; to:- struct _RECEIVERINFO; /*! * \brief Receiver plug-in reference structure. * * A variable with this structure is provided by the plug-in. */ typedef struct _RECEIVERPLUGIN { int (*rp_create) (struct _RECEIVERINFO * rip); int (*rp_setup) (struct _RECEIVERINFO * rip, STATIONINFO *sip); } RECEIVERPLUGIN; Regards Ian
receiver.h
|