gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

error: 'fmemopen' was not declared in this scope

Open simonpcook opened this issue 4 years ago • 0 comments

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?

simonpcook avatar May 02 '22 13:05 simonpcook