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

Getting undefined reference error when trying to compile dump_json_ast.cpp #124

Open
akshit24 opened this issue Aug 17, 2023 · 0 comments
Open

Comments

@akshit24
Copy link

I built the libgraphqlparser from source . All the required files (AstNode.h, GraphQLParser.h and c/GraphQLAstToJSON.h) are generated and present in the same directory. When I'm trying to compile dump_json_ast.cpp, I'm facing the following error:

/tmp/cchrLFw4.o: In function main: dump_json_ast.cpp:(.text+0x63): undefined reference to facebook::graphql::parseFile(_IO_FILE*, char const**) dump_json_ast.cpp:(.text+0xe9): undefined reference to graphql_ast_to_json collect2: error: ld returned 1 exit status

I verified and all the required files are already built and present. I'm not sure why the compiler is not able to link the reference.
Use Case : I just need to have a sample graphql query parsed and print the corresponding json.

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

No branches or pull requests

1 participant