Author Topic: LLVM/Clang compiler for MinGW  (Read 48830 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: LLVM/Clang compiler for MinGW
« Reply #30 on: May 07, 2013, 07:40:28 am »
one step further, I indeed forgot to rerun ldconfig, after I had build the libc++abi !

So now it links, and runs from within CB, and shell without LD_LIBRARY_PATH execution.

Well the "runs" ==> crashes

According to the debugger : in libcxxabi/src/cxa_exception.cpp

Code
LIBCXXABI_NORETURN
void
__cxa_throw(void* thrown_object, std::type_info* tinfo, void (*dest)(void*))
{  /// <====================================== on this line stack ponter

during the call of :     std::cout << "Hello world!" << std::endl;


just having a main that does return 0 ==> that doesn't crash