gvbarroso / iSMC

The integrated Sequentially Markovian Coalescent
GNU General Public License v3.0
11 stars 3 forks source link

make_unique issue #10

Closed nousiaso closed 2 years ago

nousiaso commented 2 years ago

Hello, when i try to compile after cmake command i get the error

error: ‘make_unique’ is not a member of ‘std’
1064 | dt = std::make_unique< Table >(nCol, 0);

I understand that make_unique is a C++ function but in linux gcc g++ 11 is the ones used

How can i solve this issue ?

Thanks

nousiaso commented 2 years ago

it was solved by adding SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") to the CmakeLists.txt

gvbarroso commented 2 years ago

thanks -- updated requirement to c++14

gvbarroso commented 2 years ago

Oh, how weird that this never came up before! Thanks for catching it!

Cheers,

On Mon, 26 Sept 2022 at 07:10, Orestis Nousias @.***> wrote:

it was solved by adding SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") to the CmakeLists.txt

— Reply to this email directly, view it on GitHub https://github.com/gvbarroso/iSMC/issues/10#issuecomment-1257936395, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKTPDCZQ4WO2THTC3TRT33WAGHDNANCNFSM6AAAAAAQVV6ZEU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Gustavo V. Barroso