Skip to content

error: 'strtod_l' was not declared in this scope on Solaris #1203

@vedranmiletic

Description

@vedranmiletic

Trying to compile fmt on OpenIndiana Hipster 2019.04:

[1/165] Compiling C++ object 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o'.
FAILED: subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o 
c++ -Isubprojects/fmt-5.3.0/8e83f07@@fmt@sha -Isubprojects/fmt-5.3.0 -I../subprojects/fmt-5.3.0 -I../subprojects/fmt-5.3.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -g -fPIC -MD -MQ 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o' -MF 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o.d' -o 'subprojects/fmt-5.3.0/8e83f07@@fmt@sha/src_posix.cc.o' -c ../subprojects/fmt-5.3.0/src/posix.cc
In file included from ../subprojects/fmt-5.3.0/src/posix.cc:13:
../subprojects/fmt-5.3.0/include/fmt/posix.h: In member function 'double fmt::v5::Locale::strtod(const char*&) const':
../subprojects/fmt-5.3.0/include/fmt/posix.h:316:21: error: 'strtod_l' was not declared in this scope
     double result = strtod_l(str, &end, locale_);
                     ^~~~~~~~
../subprojects/fmt-5.3.0/include/fmt/posix.h:316:21: note: suggested alternative: 'strtod'
     double result = strtod_l(str, &end, locale_);
                     ^~~~~~~~
                     strtod
[3/165] Compiling C++ object 'subprojects/spdlog-1.3.1/tests/7c1051b@@tests_exe@exe/test_errors.cpp.o'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions