Guest User

Untitled

a guest
Nov 18th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. gcc -lm
  2.  
  3. /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
  4. (.text+0x20): undefined reference to `main'
  5. collect2: error: ld returned 1 exit status
  6.  
  7. CC=gcc
  8. CFLAGS=-I.
  9. DEPS = main.h node.h print.h
  10. OBJ = main.o node.o print.o
  11.  
  12. %.o: %.c $(DEPS)
  13. $(CC) -c -o $@ $< $(CFLAGS)
  14. ukkonen: $(OBJ)
  15. $(CC) -o $@ $^ $(CFLAGS)
  16.  
  17. $ objdump -t main.o
Add Comment
Please, Sign In to add comment