Hi,
When I run the linker through the command line like this, it works.
g++ -g -pg -fprofile-arcs -ftest-coverage -Lrelease1 -o testApp file.o
-lSharedLib
But when i run from a make file with the follow equivalent commands, it
does not. It gives the error reproduced below. can you help debug the
cause.
LINK_FLAGS= -g -pg -fprofile-arcs -ftest-coverage -fPIC -Lrelease1
testApp: file.o -lSharedLib
$(CXX) $(LINK_FLAGS) -o $@ $^
Error:
make: *** No rule to make target `-lSharedLib', needed by `testApp'.
Stop.
Thanks,
Madhav Ancha.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make