Menu

#5 reallocf

v1.0 (example)
open
None
7
2013-11-08
2013-11-08
No

FROM HIEU
MAIL: November 8, 2013 1:52:55 AM GMT+01:00

hi guys

i did the usual compile on a Suse Linux/g++ 4.5.0 and got this error

lmclass.cpp: In member function ‘void lmclass::checkMap()’:
lmclass.cpp:189:72: error: ‘reallocf’ was not declared in this scope

it might be the same thing that fabienne reported a few months ago

Discussion

  • Nicola Bertoldi

    Nicola Bertoldi - 2013-11-08

    FROM Fabienne Braune
    MAIL: September 17, 2013 10:46:19 AM GMT+02:00

    Hi to all,

    I have trouble building IRSTLM. It looks like it does not work with gcc 4.8.1 (Red Hat 4.8.1-1) . I get the error message below :

    lmclass.cpp: In member function 'void lmclass::checkMap()':
    lmclass.cpp:190:72: error: 'reallocf' was not declared in this scope
    MapScore = (double) reallocf(MapScore, sizeof(double)(MaxMapSize));
    ^
    lmmacro.cpp: In member function 'void lmmacro::loadmap(std::string)':
    lmmacro.cpp:226:100: error: 'reallocf' was not declared in this scope
    microMacroMap = (int )reallocf(microMacroMap, sizeof(int)(BUFSIZ(1+microMacroMapN/BUFSIZ)));
    ^
    lmmacro.cpp:274:91: error: 'reallocf' was not declared in this scope
    microMacroMap = (int
    )reallocf(microMacroMap, sizeof(int)(microMacroMapN+BUFSIZ));
    ^
    lmmacro.cpp:282:91: error: 'reallocf' was not declared in this scope
    microMacroMap = (int
    )reallocf(microMacroMap, sizeof(int)*(microMacroMapN+BUFSIZ));
    ^

    Thanks a lot!
    Cheers,
    Fabienne

     
  • Nicola Bertoldi

    Nicola Bertoldi - 2013-11-08

    FORM Nicola Bertoldi
    MAIL: September 17, 2013 11:58:22 AM GMT+02:00

    Hi Fabienne,

    thanks for reporting this bug.

    TIll now, we tested IRSTLM with older version of C++ compiler
    - gcc version 4.2.1 (on MAC OSx 10.6)
    - gcc version 4.4.6 (on Scientific Linux release 6.3)

    We immediately open a ticket for this
    and try to solve as soon as possible.

    When done, I will let you know

    If you experience other problems with IRSTLM,
    please send an email to the IRSTLM-specific support list
    user-irstlm AT list DOT fbk DOT eu

    Nicola