Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement