#40 missing include when python is off

closed-out-of-date
nobody
None
5
2013-03-12
2011-12-27
bicatali
No

with g++ 4.6.2, error of undefined strtouil arose when the python modules are not built. here is an easy patch to fix it.

Discussion

  • bicatali
    bicatali
    2011-12-27

     
    Attachments
    • status: open --> pending
     
  • Hi,

    Thanks for posting the patch. I've just tested the current CVS version of GDL with g++ 4.7.0 and 4.6.2 and there were no errors (tried both options: with or without Python support). Could you confirm if the problem persists with the current CVS version?

    Best,
    Sylwester

     
  • Does the error persist if you regenerate all the ANTLR-generated files?, i.e.

    $ cd gdl/src
    $ for i in *.g; do antlr $i; done;

    Sylwester

     
  • bicatali
    bicatali
    2012-06-20

    yes it does. actually a better patch would be to include <cstdlib> in cformat.g

     
  • bicatali
    bicatali
    2012-06-20

    • status: pending --> open
     
  • Marc Schellens
    Marc Schellens
    2013-03-12

    This went out of focus: I Changed the code in format.g (and run antlr to generate CFMTLexer.cpp).
    All files starting with Capital characters are generated and should not be changed themselves, but the corresponding .g files.

     
  • Marc Schellens
    Marc Schellens
    2013-03-12

    • status: open --> closed-out-of-date