CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Jun 2006
    Posts
    28

    How to read this, it seems like it has two types

    Here is the part thats causing the error

    #ifndef YY_SKIP_mbs_yysbuf
    #ifdef __cplusplus
    extern "C" int mbs_yysbuf YY_PROTO(( void ));
    #else
    extern int mbs_yysbuf YY_PROTO(( void ));
    #endif
    #endif


    Particularly, iam having trouble with

    extern int mbs_yysbuf YY_PROTO(( void ));

    I am not sure how do define mbs_yysbuf in my heaer file. If i do not define, there will be an error saying

    legacy error LNK2019: unresolved external symbol _mbs_yysbuf referenced in function _yylex

    Is int the type of YY_PROTO(( void )) or is mbs_yysbuf the type of YY_PROTO(( void ))??

    i believe the resolution is to define mbs_yysbuf in the header file, but i am not sure how to define it.
    Last edited by linhung; June 16th, 2006 at 09:07 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured