Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CMClark1 opened this issue Sep 25, 2024 · 3 comments
Open

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

CMClark1 opened this issue Sep 25, 2024 · 3 comments

Comments

@CMClark1
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants