Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"undefined symbol" during execution in C++

My program compiles and links without an error. However when I start to run the program, it says

"undefined symbol: _ZN6Flexus11SharedTypes19FastBranchPredictor9combiningERKSsj"

How it is possible? If there is anything vague, it should not link the program.

DeMangeled:

Flexus::SharedTypes::FastBranchPredictor::combining(std::string const&, unsigned int)
like image 500
mahmood Avatar asked Oct 29 '25 02:10

mahmood


1 Answers

I think you're linking to a dynamic library which doesn't contain a function you're trying to call from it. The compiler and/or linker cannot detect the error because you're linking to the library runtime

like image 176
Armen Tsirunyan Avatar answered Oct 30 '25 18:10

Armen Tsirunyan