Search:

Type: Posts; User: Inarrebla

Search: Search took 0.00 seconds.

  1. You're absolutely right christop, the sqrtf...

    You're absolutely right christop, the sqrtf function is available in C99 according to cppreference.com: sqrt, sqrtf, sqrtl - cppreference.com. I should have looked there before making any assumptions...
  2. It doesn't work either: $ gcc -std=gnu99...

    It doesn't work either:


    $ gcc -std=gnu99 -lmath -o test test.c
    test.c: In function 'main':
    test.c:7:17: warning: implicit declaration of function 'sqrtf' [-Wimplicit-function-declaration]
    ...
  3. Checking if the macro _POSIX_C_SOURCE is defined doesn't work

    Hello,
    I wrote a C program that relies on the sqrtf function to calculate the square root of a float, so I check if the macro _POSIX_C_SOURCE is defined before including any header. The problem is...
Results 1 to 3 of 3