Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11.0.1 Compile error with no OS #4078

Closed
mike919192 opened this issue Jul 18, 2024 · 2 comments
Closed

11.0.1 Compile error with no OS #4078

mike919192 opened this issue Jul 18, 2024 · 2 comments

Comments

@mike919192
Copy link

Hi, I am currently successfully using fmt 10.2.1 on an embedded project with no operating system. I tried to upgrade to 11.0.1 and I get this compile error.

In file included from XXX\include/fmt/format.h:4409,
                 from XXX\include/fmt/base.h:3059,
XXX\include/fmt/format-inl.h: In constructor 'fmt::v11::detail::file_print_buffer::file_print_buffer(FILE*)':
XXX\include/fmt/format-inl.h:1638:5: error: 'flockfile' was not declared in this scope; did you mean '_flockfile'?
 1638 |     flockfile(f);
      |     ^~~~~~~~~
      |     _flockfile
XXX\include/fmt/format-inl.h: In destructor 'fmt::v11::detail::file_print_buffer::~file_print_buffer()':
XXX\include/fmt/format-inl.h:1646:5: error: 'funlockfile' was not declared in this scope; did you mean '_funlockfile'?
 1646 |     funlockfile(file_);
      |     ^~~~~~~~~~~
      |     _funlockfile

I can't say for sure but this seems related to no operating system, because I have no files :)

Some more details:

  • Using -DFMT_HEADER_ONLY and -fno-exceptions
  • Compiler is gcc 12.2 gcc-arm-none-eabi

Let me know if there is any more information I can provide.

@vitaut
Copy link
Contributor

vitaut commented Jul 18, 2024

Essentially the same as #4054 (already fixed).

@mike919192
Copy link
Author

I tried again to compile using head of master and I also confirm the fix works for me. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants