mic@mic-nb /tmp $ cat test.c
#define log math_log
#include <math.h>
#undef log
int main() {
return math_log(10);
}
mic@mic-nb /tmp $ g++ test.c
/tmp/ccBA5HuI.o: In function `main':
test.c:(.text+0x1c): undefined reference to `math_log'
collect2: error: ld returned 1 exit status