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

CodeQL Analysis fails due to a compilation error on example #474

Closed
ZigRazor opened this issue Nov 20, 2024 · 0 comments · Fixed by #477
Closed

CodeQL Analysis fails due to a compilation error on example #474

ZigRazor opened this issue Nov 20, 2024 · 0 comments · Fixed by #477
Assignees
Labels
automated workflows Automated Workflows bug Something isn't working CI/CD Continuous Integration/Continuous Development Issue good first issue Good for newcomers Priority:High Priority Label for high priority issue

Comments

@ZigRazor
Copy link
Owner

CodeQL Analysis fails due to a compilation error on example folder.
The error is the folloring:

[ 96%] Building CXX object examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/network_dynamics_example.cpp.o
/home/runner/work/CXXGraph/CXXGraph/examples/NetworkDynamicsExample/network_dynamics_example.cpp: In function ‘int main()’:
/home/runner/work/CXXGraph/CXXGraph/examples/NetworkDynamicsExample/network_dynamics_example.cpp:29:48: error: invalid initialization of reference of type ‘const std::vector<int>&’ from expression of type ‘const unsigned int’
   29 |     const std::vector<int>& degrees = nodePair.second;
      |                                       ~~~~~~~~~^~~~~~
gmake[2]: *** [examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/build.make:79: examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/network_dynamics_example.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2477: examples/NetworkDynamicsExample/CMakeFiles/network_dynamics_example.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Please correct it.

@ZigRazor ZigRazor added bug Something isn't working good first issue Good for newcomers automated workflows Automated Workflows Priority:High Priority Label for high priority issue CI/CD Continuous Integration/Continuous Development Issue labels Nov 20, 2024
@ZigRazor ZigRazor self-assigned this Dec 2, 2024
ZigRazor added a commit that referenced this issue Dec 2, 2024
ZigRazor added a commit that referenced this issue Dec 2, 2024
…e to a compilation error on example #474 (#477)

* Corrected network dynamics example for issue CodeQL Analysis fails due to a compilation error on example #474

* updated gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated workflows Automated Workflows bug Something isn't working CI/CD Continuous Integration/Continuous Development Issue good first issue Good for newcomers Priority:High Priority Label for high priority issue
Projects
None yet
1 participant