|
Post by alexfish on Dec 4, 2023 15:20:59 GMT 1
HI All
EVAL not Working
NEED to install libmatheval-dev
sudo apt install libmatheval-dev
then example will compile
OPTION EVAL TRUE DECLARE x, y TYPE FLOATING x = 3 y = 4 nr = 5 PRINT EVAL("x*x + y +" & STR$(nr) & " + 6")
BR Alex
|
|
|
Post by Pjot on Dec 4, 2023 19:14:50 GMT 1
Hi Alex, The documentation for EVAL says "This function relies on the presence of the 'libmatheval' library on the compiling platform." This indicates that you indeed must install an external package.
I will narrow it down to the remark that the development files for 'libmatheval' are required. BR Peter
|
|
|
Post by alexfish on Dec 4, 2023 23:25:46 GMT 1
Thanks Peter
as a side note one can prefix the method with a single string my help in tracking what the actual bit relates to
IE
OPTION EVAL TRUE DECLARE x, y TYPE FLOATING x = 3 y = 4 nr = 5 PRINT EVAL("My_Cost" "x*x + y +" & STR$(nr) & " + 6")
BR Alex
|
|