Skip to content

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

@ZigRazor

Description

@ZigRazor

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.

Metadata

Metadata

Assignees

Labels

CI/CDContinuous Integration/Continuous Development IssuePriority:HighPriority Label for high priority issueautomated workflowsAutomated WorkflowsbugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions