Thank for the replies, @maxbiostat and @WardBrian.
@WardBrian I gave your make_odds.hpp a go. I am no longer seeing the overloading error nor the notes that would follow, but I am still seeing the redefinition error. This is on the same machine, version of cmdstand, g++, and make as before.
Prior to attempting to make, I had deleted all of the instances of cmdstan from my machine with the exception of the tar.gz I downloaded from the releases page on github. I followed the same procedure as before: unzip, make clean-all, make build, add a ‘make_odds.hpp’ (with your edits), edit ‘bernoulli.stan’, and ran the following make command from cml:
make STANCFLAGS=--allow-undefined USER_HEADER=examples/bernoulli/make_odds.hpp examples/bernoulli/bernoulli
Following this attempt, I tried using the make/local file following the same procedure as above. The end result is the same.
To give a full walk through of this process, I recorded my screen as I attempted several different approaches. I apologize for the length of the recording; a majority of it is taken up from building.
As before, I have attached all the two .hpp files, ‘bernoulli.stan’, and ‘local’ from the make directory (saved as a .txt file else I can’t upload it).
@WardBrian Could it be the tar.gz that I am using? amd64 wasn’t listed among the others so I used what appeared to be the catch-all version.
Also, I hadn’t noted this prior: When g++ is attempting to compile, it includes two -include examples/bernoulli/make_odds.hpp -include examples/bernoulli/make_odds.hpp calls. Is this expected behavior?
Please let me know if there’s anything I am missing or anything else I can try. I’m stumped.
-Matt
bernoulli.hpp (14.5 KB)
bernoulli.stan (309 Bytes)
make_odds.hpp (296 Bytes)
local.txt (1.1 KB)

