Skip to main content
Added some context.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Because time() and some other functions are builtin defined in the C library (libc) itself and GCC always links to libc unless you use the -ffreestanding-ffreestanding compile option. However math functions live in libm which is not implicitly linked by gcc.

Because time() and some other functions are builtin defined in the C library (libc) itself and GCC always links to libc unless you use the -ffreestanding compile option. However math functions live in libm which is not implicitly linked by gcc.

Because time() and some other functions are builtin defined in the C library (libc) itself and GCC always links to libc unless you use the -ffreestanding compile option. However math functions live in libm which is not implicitly linked by gcc.

Post Merged (destination) from stackoverflow.com/questions/4606301/…
Source Link
ismail
  • 47.9k
  • 9
  • 90
  • 97

Because time() and some other functions are builtin defined in the C library (libc) itself and GCC always links to libc unless you use the -ffreestanding compile option. However math functions live in libm which is not implicitly linked by gcc.