gccrs
gccrs copied to clipboard
error: 'fmemopen' was not declared in this scope
I tried compiling the compiler with msys, targeting ucrt64, and my build failed with the following:
In file included from ../../gccrs/gcc/rust/lex/rust-lex.cc:19: ../../gccrs/gcc/rust/lex/rust-lex.h: In static member function 'static Rust::Lexer Rust::Lexer::lex_string(std::string&)': ../../gccrs/gcc/rust/lex/rust-lex.h:171:24: error: 'fmemopen' was not declared in this scope; did you mean 'freopen'? 171 | auto string_file = fmemopen (&input[0], input.length (), "r"); | ^~~~~~~~ | freopen
A quick Google suggests fmemopen doesn't exist on Windows?