Skip to content
Back to formatted view

Raw Message

Message-ID: <6AE9C6C0-7C32-415E-8099-0249812D204A@R-project.org>
Date: 2023-11-16T20:14:16Z
From: Simon Urbanek
Subject: Compiling a library with Rcpp causing many 'unknown type'/'no member named' errors
In-Reply-To: <YTBPR01MB2943DAFFC5B1297A7A66F1B6C1B0A@YTBPR01MB2943.CANPRD01.PROD.OUTLOOK.COM>

Brian,

you are using Anaconda so all bets are off since that is not supported by CRAN. It looks like a broken compiler/runtime combination in Anaconda so your best bet would be to contact their support as this is unrelated to R (updating Anaconda sounds like an obvious first step, hoping the compiler/runtime issue has been fixed in newer version). I would recommend removing Anaconda and using released CRAN R version and Apple tools instead if you want a stable solution.

Cheers,
Simon


> On 17/11/2023, at 5:02 AM, Brian Peng <b36peng at uwaterloo.ca> wrote:
> 
> Hi All,
> 
> I am having issues with building my package that uses Rcpp in it. Using 'install' I end up with a ton of compilation errors originating from Cpp include files. There are more details on this Stack Overflow post (https://stackoverflow.com/questions/77491429/compiling-a-library-with-rcpp-causing-many-unknown-type-no-member-named-erro) including the output errors.
> 
> A user there suggested that I may be unable to use anaconda, which I am currently using, as a compiler and should switch to gfortran. However, I we were both unsure of how to direct R to use gfortran instead of anaconda, so he directed me to post to this mailing list. Could the compiler be the issue and if so, how do I switch to gfortran? Is there anything else that might be wrong?
> 
> Thanks,
> Brian
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>