Skip to content

Undefined symbol EOF  #2755

Closed
Closed
@cxxman

Description

@cxxman

What is the issue you have?

I am getting compilation error like "Undefined symbol EOF" with gcc9 on Ubuntu 18.04

Please describe the steps to reproduce the issue.

Include single header file json.hpp and try to compile code that uses it.

Can you provide a small but working code example?

What is the expected behavior?

I can see EOF still used in the one place in the single header. Did not check multiple headers.
After replacing with std::char_traits<char>::eof() it has started to work.
Please incorporate this small change.

And what is the actual behavior instead?

Which compiler and operating system are you using?

  • Compiler: ___
  • Operating system: ___

Which version of the library did you use?

  • latest release version 3.9.1
  • other release - please state the version: ___
  • the develop branch

If you experience a compilation error: can you compile and run the unit tests?

  • yes
  • no - please copy/paste the error message below

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions