Hi, I’m new to Stan and am trying to follow the
cmdstan-guide-2.19.1.pdf tutorial (actually want to use MatlabStan but there seems to be an underlying problem compiling the stan file).
I managed to build CmdStan successfully (as far as I can tell) but got the following error when I tried to compile
C:\Users\<username>\Documents\cmdstan-2.19.1>make examples/bernoulli/bernoulli.exe g++ -std=c++1y -m64 -Wall -Wno-unused-function -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable -Wno-sign-compare -Wno-unused-local-typedefs -O3 -I src -I stan/src -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.69.0 -I stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -c -MT -MT examples/bernoulli/bernoulli.exe -include examples/bernoulli/bernoulli.hpp -include src/cmdstan/main.cpp -M -E -MG -MP -MF examples/bernoulli/bernoulli.d examples/bernoulli/bernoulli.hpp g++.exe: error: examples/bernoulli/bernoulli.exe: No such file or directory make: *** [examples/bernoulli/bernoulli.d] Error 1
examples/bernoulli directory contains these files:
bernoulli.data.R bernoulli.data.json bernoulli.hpp bernoulli.stan
I don’t understand why g++ is looking for
bernoulli.exe – I thought this step was supposed to create that from the stan file. Am I doing something wrong? Any help fixing this problem would be greatly appreciated.
Please provide this additional information in addition to your question:
- Operating System: Windows 10
- CmdStan Version: 2.19.1
- Compiler/Toolkit: gcc version 4.9.3 (x86_64-posix-seh, Built by MinGW-W64 project) / Rtools 3.4