rime / librime

Rime Input Method Engine, the core library
https://rime.im
BSD 3-Clause "New" or "Revised" License
3.33k stars 547 forks source link

Error: ‘exp’ was not declared in this scope #612

Closed ckykenken closed 1 year ago

ckykenken commented 1 year ago

Describe the bug variable 'exp' gives not declared error during compile

Flavor(please complete the following information): Select your flavor:

Package:

Hardware:

Additional context Add any other context about the problem here. /home/ken/ibus-rime/librime/src/rime/gear/script_translator.cc:490:23: error: ‘exp’ was not declared in this scope 490 | cand->set_quality(exp(entry->weight) + | ^~~ /home/ken/ibus-rime/librime/src/rime/gear/script_translator.cc:504:23: error: ‘exp’ was not declared in this scope 504 | cand->set_quality(exp(entry->weight) + | ^~~

lotem commented 1 year ago

please update librime to latest code to fix the build error.