Home › ELEKTOR FORUMS › Elektor Internet Radio (EIR) (April 2008) › Webradio Source Build Problem

ELEKTOR FORUMS

Please log in to post a reply or subscribe / unsubscribe to topics

Topic: Webradio Source Build Problem

Author Post

ianmac28sco

1 post

Popping In
Popping In

Read post 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

Attachmentreceiver.h

Please log in to post a reply or subscribe / unsubscribe to topics

Bestseller

PIC Microcontrollers

This hands-on book covers a series of exciting and fun projects with PIC microcontrollers. You can build more than 50 projects for your own use.