none
C2061: syntax error : identifier 'NET_IFTYPE' at Compact 7 RRS feed

  • Question

  • Hi, every body.

    Now, i porting a WLAN driver for CE6.0 R3 to Windows Embedded Compact 7.

    But i get some compile errors as below...

     

    c:\wince700\public\common\sdk\inc\ifdef.h(168) : error C2061: syntax error : identifier 'NET_IFTYPE'

    c:\wince700\public\common\sdk\inc\ifdef.h(168) : error C2059: syntax error : ';'

    c:\wince700\public\common\sdk\inc\ifdef.h(168) : error C2059: syntax error : ','

     

    At ifdef.h line 168:

    typedef UINT16 NET_IFTYPE, *PNET_IFTYPE;        // Interface Type (IANA ifType)

    i don't know what is wrong...

    At sources file,

    INCLUDES= \
      $(_PUBLICROOT)\COMMON\SDK\INC; \
      $(_PUBLICROOT)\COMMON\OAK\INC; \
      $(_PUBLICROOT)\COMMON\DDK\INC; \

    How can i solve this problem?

    Thank you.

    Lasy Tako

    Thursday, April 21, 2011 8:38 AM

All replies

  • since it's a 'typedef' maybe the problem is that UINT16 is not defined: try include types.h before ifdef.h
    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    Thursday, April 21, 2011 9:52 AM
  • Thank you, Luca Calligaris!

    I copied ifdef.h to my local platform, and include types.h.

    Then, these errors disappeared!

     

    Lazy Tako

    Friday, April 22, 2011 1:38 AM