AnsweredAssumed Answered

cgi_index.c compiler error HTTPD_CGI_LINK_STRUCT

Question asked by corrado carini on May 16, 2011
Latest reply on May 16, 2011 by corrado carini

I'm new in MQX and i'm trying to compile TWR-K60N512_Quick_Start_Demo example but I find 8 errors, one for each line of this struct:

const HTTPD_CGI_LINK_STRUCT cgi_lnk_tbl[] = {

  { "accel_data",   cgi_accelerometer_data},

  { "rtcdata",      cgi_rtc_data},

  { "board_status", cgi_board_status},

  { "game_status",  cgi_game_status},

  { "toggleled1",     cgi_toggle_led1},

  { "toggleled2",     cgi_toggle_led2},

  { "toggleled3",     cgi_toggle_led3},

  { "toggleled4",     cgi_toggle_led4},

{ 0, 0 }    // DO NOT REMOVE - last item - end of table};

Error is:

Error[Pe144]: a value of type "int (*)(struct httpd_session_struct *)" cannot be used to initialize an entity of type "long (*)(struct httpd_session_struct *)"

I use IAR 6 and MQX 3.7.0

 

Many thanks 

Outcomes