admb-project / admb

AD Model Builder
http://admb-project.org
Other
64 stars 19 forks source link

C++17 does not allow 'register' storage class specifier #305

Open CMClark1 opened 1 month ago

CMClark1 commented 1 month ago

I'm having some trouble running ADMB and associated packages (R2admb, PBS.admb, etc.) because of the following error that is generated in R.

ISO C++17 does not allow 'register' storage class specifier [-Wregister]

Is there a way around this? Thanks!

Cole-Monnahan-NOAA commented 1 month ago

Can you provide more details? Can you compile and run models outside of R? This appears to be a compiler issue, so make sure you are using the ADMB command prompt to compile models.

CMClark1 commented 1 month ago

When I run it in the ADMB command prompt, it looks like it runs and all the files are generated. But, the mcmc outputs are blank, so obviously it isn't running properly.

Cole-Monnahan-NOAA commented 1 month ago

You mean that it optimizes and produces report file fine?

You can run from the command line argument and this guide may be of help to get you started.

However, it's recommended to run MCMC through the 'adnuts' R package.