Closed alex-lew closed 1 month ago
Hmm. I'm happy to help with this bug, but I don't have a Mac, so I can't really test out possible solutions.
One easy thing you can try is upgrading your version of GNU Make. I'm using GNU Make 4.3.
That did the trick, thanks!
I am using GNU Make 3.81, built for i386-apple-darwin11.3.0.
I'm not sure why exactly, since I would have thought
%test.out
is more specific, but currentlymake distributions/beta_bernoulli_test.out
is running the rule for%.out
, instead of the rule%test.out
.Because
-I$(BOOST_ROOT)
is only included for the%test.out
rule, the compiler is not finding Boost, and so the test doesn't build. (I get the same behavior formake unittests
, which ends up trying to makedistributions/beta_bernoulli_test.out
)Seems like there are several possible fixes (moving %test.out earlier in the Makefile, removing %test.out and adding BOOST_ROOT to INCFLAGS, etc.) but I don't work very often in C/C++ and wasn't sure what the right one was.