Menu

#2 Flex++ deprecated (missing) header on SuSE 10.0, gcc 4.0.2

open
Orcan (2)
5
2005-12-29
2005-11-22
No

On SuSE 10.0 with gcc 4.0.2 I receive the following
error when compiling orcansimtools:

/tools/lib/flexskel.cc:43:19: error: osfcn.h: No such
file or directory
In file included from
/usr/include/c++/4.0.2/backward/iostream.h:31,
from /tools/lib/flexskel.h:55,
from
\usr\home\Mawanda\develop\oc\orcansimtools\src\FormulaParser.y:63,
from ../src/FormulaScanner.l:63:
/usr/include/c++/4.0.2/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or
<iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.

As a workaround you can use the attached file. The file
is taken from
http://www.ling.uni-potsdam.de/~moocow/projects/moot/
(Don't panic, GPL)
He had the same problem and wrote his own osfcn.h

Discussion

  • Richard Freitag

    Richard Freitag - 2005-11-22

    Missing file for flex++ problem on SuSE 10.0 with gcc 4.0.2

     
  • Michael B. Kellner

    • assigned_to: nobody --> tehache
     
  • Michael B. Kellner

    Logged In: YES
    user_id=1109455

    Thomas, could you reproduce this error on a SuSE 10 box?
    In the original code, the generated .cpp and .hh files, I
    commented out the include to osfcn.h because there is no
    need for it. Thus, I do not understand the error.

     

Log in to post a comment.