Web lists-archives.com

Re: [ANNOUNCEMENT] Updated: gcc-7.3.0-2 (x86/x86_64)(Test)




On 2018-05-05 22:00, JonY wrote:

gcc-7.3.0-2 has been uploaded for Cygwin. This version is for testing.

Java support has been removed from upstream GCC, GCJ is no longer available.

Changes since -1:
* Enabled libstdc++ filesystem feature as requested by Nuno Lopes.

I've updated gcc-core, gcc-g++, and libstdc++ to 7.3.0-2,
but the filesystem library still doesn't seem to be working:

#include <experimental/filesystem>
#include <iostream>
using namespace std::experimental;
int main() {
    filesystem::path p("expfs.cpp");
    std::cout << p.string() << " " << filesystem::exists(p) << "\n";
}

$ g++ -std=c++1z expfs.cpp -o expfs

/tmp/ccV1QAAo.o:expfs.cpp:(.text$_ZNSt12experimental10filesystem2v16existsERKNS1_4pathE[_ZNSt12experimental10filesystem2v16existsERKNS1_4pathE]+0x11): undefined reference to `std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::path const&)' /tmp/ccV1QAAo.o:expfs.cpp:(.text$_ZNSt12experimental10filesystem2v16existsERKNS1_4pathE[_ZNSt12experimental10filesystem2v16existsERKNS1_4pathE]+0x11): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `std::experimental::filesystem::v1::status(std::experimental::filesystem::v1::path const&)' /tmp/ccV1QAAo.o:expfs.cpp:(.text$_ZNSt12experimental10filesystem2v14pathC1IA10_cS2_EERKT_[_ZNSt12experimental10filesystem2v14pathC1IA10_cS2_EERKT_]+0x5d): undefined reference to `std::experimental::filesystem::v1::path::_M_split_cmpts()' /tmp/ccV1QAAo.o:expfs.cpp:(.text$_ZNSt12experimental10filesystem2v14pathC1IA10_cS2_EERKT_[_ZNSt12experimental10filesystem2v14pathC1IA10_cS2_EERKT_]+0x5d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `std::experimental::filesystem::v1::path::_M_split_cmpts()'
collect2: error: ld returned 1 exit status

Ross Smith

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple