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 at mayo.edu "TERR-ree THUR-noh" [[alternative HTML version deleted]]
On Wed, 01 Apr 2026 14:29:59 -0500 "Therneau, Terry M., Ph.D. via R-devel" <r-devel at r-project.org> wrote:> I have code that works on Rdevel, but for regular R? (4.4.1) the > compile step fails with messages about "bool".?> hmmeigen.c:38:5: error: unknown type name ?bool?; did you mean > ?_Bool??On R >= 4.5, <R_ext/Boolean.h> includes <stdbool.h>, which (until C23) provides the 'bool' type and the 'true' / 'false' constants. Starting with C23, the type and the keywords are built-in, but the header still exists. On previous versions of R, <stdbool.h> is not included automatically. -- Best regards, Ivan