libOpenDRIVE icon indicating copy to clipboard operation
libOpenDRIVE copied to clipboard

When I execute "make" ,an error will be reported

Open cpsoymilk opened this issue 2 years ago • 12 comments

Cache_-4606284376c952b5 I guess the version of my "cmake" is inconsistent with yours. Can you tell me your version of cmake

cpsoymilk avatar Oct 05 '22 07:10 cpsoymilk

The version of mine is 3.10.2

cpsoymilk avatar Oct 05 '22 07:10 cpsoymilk

The version of my ubuntu is 18.04

cpsoymilk avatar Oct 05 '22 07:10 cpsoymilk

you need to replace all std::nan<>() with std::nan()

dongtaihong avatar Oct 08 '22 03:10 dongtaihong

ok,thanks a lot

cpsoymilk avatar Oct 08 '22 03:10 cpsoymilk

You mean NAN with std::nan() ? There is no std::nan in the code?

pageldev avatar Oct 08 '22 07:10 pageldev

@cpsoymilk which compiler version are you using? I can't reproduce.

pageldev avatar Oct 08 '22 07:10 pageldev

I changed the version from master to 0.2.0, and then it works normally image

cpsoymilk avatar Oct 08 '22 07:10 cpsoymilk

@cpsoymilk Which compiler version and OS were you using? This is an error that should be fixed.

pageldev avatar Oct 08 '22 07:10 pageldev

Do you mean the version of "make"? Besides, I don't know what OS you mean. I'll show you tomorrow. It's in my office computer.

cpsoymilk avatar Oct 08 '22 08:10 cpsoymilk

I mean which Operating System (OS), like Ubuntu 18.04, 20.04, Windows 10..? And wich compiler? (What do you get when you execute c++ --version) ?

pageldev avatar Oct 08 '22 08:10 pageldev

Okay, I'll get back to you later

cpsoymilk avatar Oct 08 '22 08:10 cpsoymilk

sendpix5 sendpix6

cpsoymilk avatar Oct 09 '22 07:10 cpsoymilk

Experiencing the same compilation errors when using CentOS 7 and GCC 8.3.1. Replacing std::isnan<double>() with std::isnan() fixes the problems.

m0uH avatar Nov 14 '22 12:11 m0uH

should be fixed with https://github.com/grepthat/libOpenDRIVE/pull/52, feel free to reopen if it's still broken

pageldev avatar Feb 20 '23 20:02 pageldev