Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coil.c:
- #include <stdio.h>
- int main(void){
- printf("Hello, World!\b");
- return 0;
- }
- Makefile:
- .POSIX:
- .SUFFIXES:
- CC = cc
- CFLAGS = -W -O
- LDLIBS = -lm -v
- all: coil
- coil: coil.o
- $(CC) -o coil coil.o
- coil.o: coil.c
- $(CC) -o coil.o coil.c
- clean:
- rm -f *.o
- ERROR:
- cc -o coil coil.o
- /usr/bin/ld: error: coil.o: unsupported relocation reference
- cc: error: linker command failed with exit code 1 (use -v to see invocation)
- *** Error code 1
- Stop.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement