Hello everyone, I have this c app and I'm trying to run the make file for it....I keep getting the following errors. I'm somewhat new to c and I don't understand what the errors below mean, it doesn't even provide a line number.
Code:
ld build/*.o -shared -lm -lc -soname=libitl.so.0 -o build/libitl.so.0.0.7
/usr/lib/libm.a(t-d000683.o):(.text+0x2): undefined reference to `_imp__acos'
/usr/lib/libm.a(t-d001313.o):(.text+0x2): undefined reference to `_imp__pow'
/usr/lib/libm.a(t-d000703.o):(.text+0x2): undefined reference to `_imp__asin'
/usr/lib/libm.a(t-d000710.o):(.text+0x2): undefined reference to `_imp__atan'
/usr/lib/libm.a(t-d001672.o):(.text+0x2): undefined reference to `_imp__tan'
/usr/lib/libm.a(t-d000711.o):(.text+0x2): undefined reference to `_imp__atan2'
/usr/lib/libm.a(t-d001584.o):(.text+0x2): undefined reference to `_imp__sin'
/usr/lib/libm.a(t-d000761.o):(.text+0x2): undefined reference to `_imp__cos'
/usr/lib/libm.a(t-d000913.o):(.text+0x2): undefined reference to `_imp__floor'
/usr/lib/libm.a(t-d000922.o):(.text+0x2): undefined reference to `_imp__fmod'
/usr/lib/libm.a(t-d001248.o):(.text+0x2): undefined reference to `_imp__modf'
/usr/lib/libc.a(t-d001212.o):(.text+0x2): undefined reference to `_imp__malloc'
/usr/lib/libc.a(t-d001318.o):(.text+0x2): undefined reference to `_imp__printf'
make: *** [build/libitl.so] Error 1
Am I missing an include statement in my code? I also keep getting the following warning:
Code:
warning: -fPIC ignored for target (all code is position independent)
If anyone recognizes how to solve this problem I'd really appreciate if you can tell me.