[Rd] bool?

Therneau, Terry M., Ph.D. therne@u @end|ng |rom m@yo@edu
Wed Apr 1 21:29:59 CEST 2026


I have code that works on Rdevel, but for regular R  (4.4.1) the compile step fails with 
messages about "bool".   Text is below.
The hmmeigen.c function is question was essentially a "lift" of the R eigen code,  
however, I want both the right and left eigenvalues, so I modified the call to dgeev to 
return both.

I am guessing that something in a .h file has changed?   The 4.4.1 version is the 
department compute infrastructure, and I can't update versions there.

Terry T.

----------

using C compiler: ‘gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-28)’
gcc -I"/home/biotools/r/R-4.4.1/lib64/R/include" -DNDEBUG  -I/usr/local/include    -fpic  
-g -O2  -c hmmeigen.c -o hmmeigen.o
hmmeigen.c: In function ‘hmmeigen’:
hmmeigen.c:38:5: error: unknown type name ‘bool’; did you mean ‘_Bool’?
      bool complexValues;
      ^~~~
      _Bool
hmmeigen.c:79:21: error: ‘false’ undeclared (first use in this function); did you mean 
‘fabsl’?
      complexValues = false;
                      ^~~~~
                      fabsl
hmmeigen.c:79:21: note: each undeclared identifier is reported only once for each function 
it appears in
hmmeigen.c:85:22: error: ‘true’ undeclared (first use in this function); did you mean ‘trunc’?
       complexValues = true;
                       ^~~~
                       trunc
make: *** [/home/biotools/r/R-4.4.1/lib64/R/etc/Makeconf:195: hmmeigen.o] Error 1
ERROR: compilation failed for package ‘icmsh’
* removing ‘/home/therneau/Rlib/icmsh’

-- 
Terry M Therneau, PhD
Department of Quantitative Health Sciences
Mayo Clinic
therneau using mayo.edu

"TERR-ree THUR-noh"

	[[alternative HTML version deleted]]



More information about the R-devel mailing list