Skip to content

Unexpected token '::' in namespace name #595

@Toxlen

Description

@Toxlen

Hello,

The first line of the following is raising org.bytedeco.javacpp.tools.ParserException saying : Unexpected token '::'.

Exception in thread "main" org.bytedeco.javacpp.tools.ParserException: "thefileconcerned.h":Unexpected token '::'
        at org.bytedeco.javacpp.tools.Token.expect(Token.java:114)
        at org.bytedeco.javacpp.tools.Parser.namespace(Parser.java:3954)
        at org.bytedeco.javacpp.tools.Parser.declarations(Parser.java:4077)
        at org.bytedeco.javacpp.tools.Parser.parse(Parser.java:4167)
        at org.bytedeco.javacpp.tools.Parser.parse(Parser.java:4322)
        at org.bytedeco.javacpp.tools.Builder.parse(Builder.java:95)
        at org.bytedeco.javacpp.tools.Builder.build(Builder.java:1095)
        at org.bytedeco.javacpp.tools.Builder.main(Builder.java:1450)
namespace namespace1::namespace2
{
    // Some code ...
}

I don't know if it is a bug or a limitation ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions