Skip to content

[Cpp Runtime] MSVC: Release 4.10 fails to compile. Missing definition for antlrcpp::s2ws #3651

@amykyta3

Description

@amykyta3

Runtime source does not provide any definition for antlrcpp::s2ws:

antlr4-cpp-runtime\ANTLRFileStream.cpp(17): error C2653: 'antlrcpp': is not a class or namespace name
antlr4-cpp-runtime\ANTLRFileStream.cpp(17): error C3861: 's2ws': identifier not found

From my attempt to upgrade to 4.10: https://github.com/SystemRDL/systemrdl-compiler/runs/6001839774

Grepping the contents of runtime shows this is missing:

$ grep -r s2ws antlr4-cpp-runtime-4.10-source/
antlr4-cpp-runtime-4.10-source/runtime/src/ANTLRFileStream.cpp:  std::ifstream stream(antlrcpp::s2ws(fileName), std::ios::binary);
antlr4-cpp-runtime-4.10-source/demo/Windows/antlr4-cpp-demo/main.cpp:  std::wstring s = antlrcpp::s2ws(tree->toStringTree(&parser)) + L"\n";

as does searching the contents of the antlr repository: https://github.com/antlr/antlr4/search?q=s2ws

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions