[llvm-dev] Compiling Kaleidoscope with clang++

15 views
Skip to first unread message

Sudakshina Dutta via llvm-dev

unread,
Mar 29, 2021, 3:27:58 AM3/29/21
to LLVM Development List
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 

Andrzej Warzynski via llvm-dev

unread,
Mar 29, 2021, 5:48:00 AM3/29/21
to llvm...@lists.llvm.org
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...@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Sudakshina Dutta via llvm-dev

unread,
Mar 29, 2021, 1:59:46 PM3/29/21
to Andrzej Warzynski, LLVM Development List
Thank you all
Reply all
Reply to author
Forward
0 new messages