Compilation ERROR - brms and stan model

OK, according to @paul.buerkner , the problem is the presence of C:\Rtools\mingw_32\bin in your PATH. To delete this, click something like

  1. left-click on Start
  2. right-click on Computer
  3. left-click on Properties
  4. left-click on Advanced System Settings
  5. left-click on Environmental variables
  6. scroll down in the bottom window to Path and left-click it
  7. left-click Edit
  8. move the cursor all the way to the left then delete the part that says C:\Rtools\mingw_32\bin; (be sure to delete exactly one semi-colon)
  9. left-click three Ok buttons

For me, it looks like

Then restart R, and try

fx <- inline::cxxfunction( signature(x = "integer", y = "numeric" ) , '
	return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
' )
fx( 2L, 5 ) # should be 10

without and then with first specifying Sys.setenv(USE_CXX14 = 1). Then rstan should work.