Saltar al contenido ForoHackers

c0mewhen

Se unió el 13 abril 2024

Mensajes en el foro

  1. Respondió en 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.

  2. Respondió en 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…

  3. Respondió en 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…

  4. Inició 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…

  5. Respondió en ¿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.