Closed Mad5ci closed 3 years ago
I found the solution... minor tweak/misunderstanding in my link recipe. I had to dig through all of the cmake automgical stuff to figure out what it was doing differently (HATE that cmake is so opaque!) The following works:
target: predictor.o mlmodel.o
$(CXX) $(CXXFLAGS) -o predictor predictor.o mlmodel.o /usr/local/lib/libshark.a -L/usr/local/lib/ -lboost_serialization
I'm trying to simplify the build process by sidestepping cmake for applications. I successfully built shark and installed it. I am able to build my application if I use cmake; but I want to do it directly with a simple makefile. I get the following link error:
What is cmake doing that my simple makefile is not??
This (with cmake) works:
This with a simple makefile does not:
What is cmake doing that my makefile is not doing?
I get this result with my makefile:
Thanks! _M