solve the mystery of undefined reference error

big surprise, C++ is to blame
This commit is contained in:
Andrew Kelley
2016-01-15 17:12:26 -07:00
parent 8409e518ab
commit 8d60ffe314
3 changed files with 23 additions and 0 deletions

View File

@@ -5,6 +5,13 @@
* See http://opensource.org/licenses/MIT
*/
// This must go before all includes.
#include "config.h"
#if defined(ZIG_LLVM_OLD_CXX_ABI)
#define _GLIBCXX_USE_CXX11_ABI 0
#endif
#include "zig_llvm.hpp"
/*