Page 1 of 1

Error linking with some functions with argument variable not computed during compilation. [solved]

Posted: 22 Oct 2021 02:38
by element
Error linking with some functions with argument variable not computed during compilation.

Code: Select all

log(1.2);		//OK
float x=1.2; log(x);	//OK
log(analogRead(A1));	//Error
sqrt(analogRead(A1));	//Error
abs(analogRead(A1));	//OK
sin(analogRead(A1));	//OK

Code: Select all

linking "test2_ino.elf"                  ..............................                        FAILED
          C:\Users\duch\AppData\Local\Temp\arduino_build_672289\\test2_ino.opp: In function `loop()':
          test2_ino.cpp:(.text._Z4loopv+0xc): undefined reference to `log'
          collect2.exe: error: ld returned 1 exit status

Re: Error linking with some functions with argument variable not computed during compilation.

Posted: 23 Oct 2021 10:52
by amatilda
Hello.
There was a small bug in the package, which was fixed without changing the version of the package. Therefore, you need to reinstall in order to download the updated package.

Re: Error linking with some functions with argument variable not computed during compilation.

Posted: 23 Oct 2021 23:21
by element
I downloaded packages again but they haven't changed. I started looking for what else to reinstall and found a new address for downloading packages.
I was typed:
https://rus.z-wave.me/files/z-uno/g2/be ... index.json
I changed to:
https://z-uno.z-wave.me/files/z-uno2/pa ... index.json

And now the packages have changed. Thanks amatilda :-)