+ 4

What's the cxx11 abi error & how to fix it?

Working on a project (already huge, I'm new to it) and it seems everytime I call a function which returns std::string from a different file, it causes an error : undefined reference to ClassName::FunctionName[abi:cxx11]() Environment : GCC : 10.3.0 OS : Ubuntu 21.04 I did my research and there are similar questions but couldn't really fix it. Any information related to it will be appreciated.

19th Oct 2021, 2:59 AM
Nikhil
Nikhil - avatar
2 Answers
+ 3
Nikhil did you look at this in your research https://github.com/facebookarchive/caffe2/issues/1980 Errors including std::__cxx11 or [abi:cxx11] or Linux with Anaconda
19th Oct 2021, 3:10 AM
BroFar
BroFar - avatar
+ 3
Thank you for the answers. But sometimes errors make you think the problem is huge when it's actually pretty small and I need a hit at my head at those times :)) Problem was I forgot to add the *.cpp file while linking đŸ€ŠđŸ»â€â™‚ïž
19th Oct 2021, 3:48 AM
Nikhil
Nikhil - avatar