aggregate value used where an integer was expected

Hi,



#define BOOTROM_RAM_ADDR 0xd800000

#define ROM_OFFSET(adr) ((UINT)adr - ( UINT )BOOTROM_RAM_ADDR )
typedef int (BOOT :: *BOOTFUNCPTR) (...);

class BOOT
{

public:

void hwCommand(void);
void fgh();

};


void BOOT :: hwCommand(void)
{

}

void BOOT :: fgh()
{

((BOOTFUNCPTR)ROM_OFFSET( & BOOT :: hwCommand ) ) ();// showing error aggregate value used where an integer was expected


}


Please help me to resolve this error
Last edited on
What's is BOOTFUNCPTR?

Is fgh() global or a member of BOOT?

Please use the code format tag to format your code.
Last edited on
I corrected
Topic archived. No new replies allowed.