Hi,
My current makefile is like this:
but if I "make" it like this, I'll get a bunch of errors cause I use functions like pow(), sqrt(), floor(), etc... I know I need to add the -lm switch but I don't know where... I tried to add them before the -O2 switch, ie: "gcc -lm -O2 -c draw.c" but I keep getting this annoying error: "gcc: -lm: linker input file unused because linking not done".Code:npn-paint : npn-paint.o func.o draw.o gcc -o npn-paint npn-paint.o func.o draw.o npn-paint.o : npn-paint.c func.h draw.h gcc -O2 -c npn-paint.c func.o : func.c func.h gcc -O2 -c func.c draw.o : draw.c draw.h gcc -O2 -c draw.c
The files draw.c, func.c and npn-paint.c all have "#include <math.h>", just so you know...
Can you help me finish this makefile? Please... This is a school project and I need to have it uploaded until monday but I haven't yet finished coding all the stuff, but I need to have this working first...
Hope someone can help me out as soon as possible. Thanks for your time reading this...



LinkBack URL
About LinkBacks


