Skip to content

Linker errors trying to use GenerateJsonSchema() #6971

Answered by sketch34
sketch34 asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like GenerateJsonSchema() is indeed is not included in the runtime libraries. I suppose this makes sense. I was wanting to use it so I could send the JSON schema across the network to clients without having to do any file operations to load it from disk. Instead my cunning plan was to generate it from the embedded binary schema.

# Public flatc library to compile flatbuffer files at runtime.
cc_library(
    name = "flatbuffers",
    srcs = [
        "code_generators.cpp",
        "idl_gen_fbs.cpp",
        "idl_gen_text.cpp",
        "idl_parser.cpp",
        "reflection.cpp",
        "util.cpp",
    ],
    hdrs = ["//:public_headers"],
    strip_include_prefix = "/include",
    visi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sketch34
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants