Jump to content

Undefined Reference to std::__cxx11


Mali

Recommended Posts

  • Honorable Member

If you have GCC>5 version, you'll see this error when the linking src:

Spoiler


undefined reference to std::__cxx11::basic_string

 

Open (libpoly&libsql)/MAKEFILE and add to CFLAGS;

-D_GLIBCXX_USE_CXX11_ABI=1

 

Do not forget to rebuild libpoly!

  • Love 1

 

Link to comment
Share on other sites

  • 3 months later...
  • Honorable Member
7 hours ago, ridetpro said:

47e80a0b08ca3a71865f5c0e3c5a8197.png

You better recompile whole extern with the same version of GCC, the same FLAGs.

No not needed. Also I don't recommend define that macro because already defined in bits/c++config.h. Just add libpoly not whole project.It will be fine, tested.

Edited by Metin2 Dev
Core X - External 2 Internal

 

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.