features.h 파일은 무슨 패키지를 깔아야 되나요?
      글쓴이: SoftOn / 작성시간: 목, 2005/11/03 - 11:44오후    
  
  flex 예제 중 c++ 예제를 해볼려고 하는데 컴파일이 안되는군요..;;
$ flex -+ test.l
 // An example of using the flex C++ scanner class.
%{
int mylineno = 0;
%}
string  \"[^\n"]+\"
ws      [ \t]+
alpha   [A-Za-z]
dig     [0-9]
name    ({alpha}|{dig}|\$)({alpha}|{dig}|[_.\-/$])*
num1    [-+]?{dig}+\.?([eE][-+]?{dig}+)?
num2    [-+]?{dig}*\.{dig}+([eE][-+]?{dig}+)?
number  {num1}|{num2}
%%
{ws}    /* skip blanks and tabs */
"/*"    {
        int c;
        while((c = yyinput()) != 0)
            {
            if(c == '\n')
                ++mylineno;
            else if(c == '*')
                {
                if((c = yyinput()) == '/')
                    break;
                else
                    unput(c);
                }
            }
        }
{number}  cout << "number " << YYText() << '\n';
\n        mylineno++;
{name}    cout << "name " << YYText() << '\n';
{string}  cout << "string " << YYText() << '\n';
%%
Version 2.5               December 1994                        44
int main( int /* argc */, char** /* argv */ )
    {
    FlexLexer* lexer = new yyFlexLexer;
    while(lexer->yylex() != 0)
        ;
    return 0;
    }
$ g++ lex.yy.cc
In file included from /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++config.h:35,                 from /usr/include/c++/4.0.2/iostream:43,
                 from lex.yy.cc:83:
/usr/include/c++/4.0.2/i486-linux-gnu/bits/os_defines.h:39:22: error: features.h: 그런 파일이나 디렉토리가 없음
Forums: 


features.h는 데비안의 경우 libc6-dev 안에 들어있습니다.
features.h는 데비안의 경우 libc6-dev 안에 들어있습니다.
http://wiki.kldp.org/wiki.php/PackageMgmt#s-3.10
참고로.. 웹 검색이 도움이 될 수 있습니다. :)
댓글 달기