gbionics / gbionics/osqp-eigen

when operator slover class, an error occured, it shows that there is a undefined reference

Open
#80 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
503
Forks
133
PR merge metrics
No merged PRs in 30d

Description

CMakeFiles/main.dir/main.cpp.o:in the function‘testQP()’:
main.cpp:(.text+0x5b5):for‘OsqpEigen::Solver::Solver()’an undefined reference
CMakeFiles/main.dir/main.cpp.o:in the function‘std::default_delete::operator()(OsqpEigen::Settings*) const’:
main.cpp:(.text._ZNKSt14default_deleteIN9OsqpEigen8SettingsEEclEPS1_[_ZNKSt14default_deleteIN9OsqpEigen8SettingsEEclEPS1_]+0x1e):‘OsqpEigen::Settings::~Settings()’an undefined reference
CMakeFiles/main.dir/main.cpp.o:in the function‘std::default_delete::operator()(OsqpEigen::Data*) const’:
main.cpp:(.text._ZNKSt14default_deleteIN9OsqpEigen4DataEEclEPS1_[_ZNKSt14default_deleteIN9OsqpEigen4DataEEclEPS1_]+0x1e):‘OsqpEigen::Data::~Data()’an undefined reference
collect2: error: ld returned 1 exit status
src/CMakeFiles/main.dir/build.make:120: recipe for target '../bin/main' failed
make[2]: *** [../bin/main] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/main.dir/all' failed
make[1]: *** [src/CMakeFiles/main.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with make and inspect main.cpp around testQP(), along with the project's CMake configuration. Check how the main target is linked against OsqpEigen, then confirm that the build completes without the reported undefined references.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.