Skip to content

Commit

Permalink
Fix compiler issues (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
FBartos authored Jun 2, 2023
1 parent 76bf57c commit edcf9e7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ models/MetaRegression/fit_wPSMA_reg10/*.RDS
models/MetaRegression/fit_PSMA_reg10/*.RDS
models/MetaRegression/fit_3PP_reg10/*.RDS
models/MetaRegression/*
config.log
config.status
src/Makevars
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: RoBMA
Title: Robust Bayesian Meta-Analyses
Version: 3.0.0
Version: 3.0.1
Maintainer: František Bartoš <[email protected]>
Authors@R: c(
person("František", "Bartoš", role = c("aut", "cre"),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## version 3.0.1
### Fixes (thanks to Don & Rens)
- compilation issues with Clang (https://github.com/FBartos/RoBMA/issues/28)
- lapack path specifications (https://github.com/FBartos/RoBMA/issues/24)

## version 3.0
### Features
- meta-regression with `RoBMA.reg()` function
Expand Down
1 change: 1 addition & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ assign("check_scaling", TRUE, envir = Ro
"2.3.1" = c("0.2.3", "999.999.999"),
"2.3.2" = c("0.2.3", "999.999.999"),
"3.0.0" = c("0.2.14", "999.999.999"),
"3.0.1" = c("0.2.14", "999.999.999"),
stop("New RoBMA version needs to be defined in '.check_BayesTools' function!")
)

Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ CXX=`"${R_HOME}/bin/R" CMD config CXX`
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
LAPACK_LIBS=`"${R_HOME}/bin/R" CMD config LAPACK_LIBS`
BLAS_LIBS=`"${R_HOME}/bin/R" CMD config BLAS_LIBS`
FLIBS=`"${R_HOME}/bin/R" CMD config FLIBS`

# Try using pkg-config to set compiler flags

Expand Down
5 changes: 4 additions & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
### Prepending 0 to JAGS_MAJOR_VERSION prevents it being set as blank (the C++ code requires a number)
### JAGS_MAJOR_ASSUMED is not needed (always 0) on unix
###############
LAPACK_LIBS=`"${R_HOME}/bin/R" CMD config LAPACK_LIBS`
BLAS_LIBS=`"${R_HOME}/bin/R" CMD config BLAS_LIBS`
FLIBS=`"${R_HOME}/bin/R" CMD config FLIBS`

PKG_CPPFLAGS=@JAGS_CFLAGS@ -D JAGS_MAJOR_FORCED=0$(JAGS_MAJOR_VERSION) -D JAGS_MAJOR_ASSUMED=0
PKG_LIBS=@JAGS_LIBS@ @JAGS_RPATH@ -ljrmath -llapack
PKG_LIBS=@JAGS_LIBS@ @JAGS_RPATH@ -ljrmath $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

###############

Expand Down
1 change: 0 additions & 1 deletion src/source/mnorm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <vector>
#include <array>
#include <JRmath.h>
#include <iostream>
#include "../matrix/matrix.h"

using namespace std;
Expand Down

0 comments on commit edcf9e7

Please sign in to comment.