Advertisement
Guest User

Make error

a guest
May 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. coil.c:
  2.  
  3. #include <stdio.h>
  4. int main(void){
  5. printf("Hello, World!\b");
  6. return 0;
  7. }
  8.  
  9. Makefile:
  10. .POSIX:
  11. .SUFFIXES:
  12. CC = cc
  13. CFLAGS = -W -O
  14. LDLIBS = -lm -v
  15. all: coil
  16. coil: coil.o
  17. $(CC) -o coil coil.o
  18. coil.o: coil.c
  19. $(CC) -o coil.o coil.c
  20. clean:
  21. rm -f *.o
  22.  
  23.  
  24. ERROR:
  25. cc -o coil coil.o
  26. /usr/bin/ld: error: coil.o: unsupported relocation reference
  27. cc: error: linker command failed with exit code 1 (use -v to see invocation)
  28. *** Error code 1
  29.  
  30. Stop.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement