But functions in math.h eg exp do not require the -lm flag (even though the manual says they do) - either in gcc at the command line or from Netbeans
Type: Posts; User: WMilner
But functions in math.h eg exp do not require the -lm flag (even though the manual says they do) - either in gcc at the command line or from Netbeans
OK thanks this works. Can you explain why this is needed? Is it because gcc treats these as 'built-in' functions?
And why it does not work from Netbeans, with command line options set to:
-m64...
With code like this:
#include <stdio.h>
#include <complex.h>
#include <math.h>
int main(int argc, char *argv[]) {