Open dmc1778 opened 1 year ago
Hi @dmc1778,
Thanks for your question. From ./codeql database create mydb --language=cpp
I suspect you are in the directory in which you installed CodeQL and not in the directory which contains your source code. CodeQL should be executed from the directory containing your source code, or you need to explicitly pass this directory to codeql database create
using the --source-root
option.
If the above doesn't help and still gives you the same error, then CodeQL is not able to automatically figure out how to build your code. The work around this, you can pass the command with which you build your code to CodeQL using the --command
option.
Hi I want to run codeQL on some C/C++ source files. I am getting the following errors when running
./codeql database create mydb --language=cpp
I am running on conda env.