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

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
element
Posts: 14
Joined: 22 Oct 2021 02:10

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

Post 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
Last edited by element on 23 Oct 2021 23:23, edited 1 time in total.
amatilda
Posts: 58
Joined: 26 Sep 2021 22:09

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

Post 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.
element
Posts: 14
Joined: 22 Oct 2021 02:10

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

Post 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 :-)
Post Reply