I have example.so, which uses fminf and fmaxf. This code of example does include .
Now the problem is I am writing another sample.cpp code, in whose Makefile I have added LDFLAGS += -lexample to use the APIs under it.
While making this code I get following link error.
../lib/example.so: undefined reference to fminf'
../lib/example.so: undefined reference to
fmaxf'
However I tried adding
- LDFLAGS += -lstdc++ -lm -lexample.
- LDFLAGS += -lexample -lm -lstdc++.
Still both does not work and I get the same error.