Sudakshina Dutta via llvm-dev
2021-Mar-29 07:27 UTC
[llvm-dev] Compiling Kaleidoscope with clang++
Dear all, As I am trying to run Kaleidoscope code from https://llvm.org, I am receiving following error message. Error : no template named 'make_unique' in namespace 'std' ; did you simply mean 'make_unique' ? Please advise. Note that I have seen a solution with cmake in some website. As I am not very familiar with cmake, kindly elaborate the usage more in case your solution has cmake. Thanks. Sudakshina -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210329/a3cea8c5/attachment.html>
Andrzej Warzynski via llvm-dev
2021-Mar-29 09:47 UTC
[llvm-dev] Compiling Kaleidoscope with clang++
Hi Sudakshina , It sounds like you are compiling in C++11 mode. LLVM has recently switched to C++14. make_unique is one of the features introduced in C++14. Could you try making sure that you use C++14? Here's how you set it up in CMake ``` set(CMAKE_CXX_STANDARD 14 CACHE STRING "") ``` I hope that this helps, Andrzej On 29/03/2021 08:27, Sudakshina Dutta via llvm-dev wrote:> Dear all, > > As I am trying to run Kaleidoscope code from https://llvm.org > <https://llvm.org>, I am receiving following error message. > > Error : no template named 'make_unique' in namespace 'std' ; did you > simply mean 'make_unique' ? > > > Please advise. Note that I have seen a solution with cmake in some > website. As I am not very familiar with cmake, kindly elaborate the > usage more in case your solution has cmake. > > Thanks. > Sudakshina > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >