c0mewhen
Joined 13 April 2024
Posts in the forum
-
Replied in undefined reference to sqrt, although we've been formally introduced in math.h
The Makefile now names the library at the link step. I'm keeping the two command lines in the issue because "I fixed the header" was what I'd written in the first version. Good grief.
-
Replied in undefined reference to sqrt, although we've been formally introduced in math.h
Object on its own existed. Linking that object without the library got the error. Linking grid.o -lm produced an executable, and with 9 as the runtime value it printed 3. I was arguing with the wrong…
-
Replied in undefined reference to sqrt, although we've been formally introduced in math.h
Yes. I'm reading the value from my own little program. With a literal sqrt(9.0) the problem went away in one of my builds, which is how I discovered that a successful tiny test can be a deeply irrita…
-
Started undefined reference to sqrt, although we've been formally introduced in math.h
My little home league program estimates the length of a line across a practice grid. The C compiler accepts the source with math.h included. At link time, on my Linux machine, the linker says "undefi…
-
Replied in ¿y si empatan? Bueno, primero a ver quién me cierra las 28 fichas
I would like one photograph of this magnífica chapuza from underneath the table. Purely for the mathematical proceedings, lol.