Skip to content

Commit

Permalink
Fixed weak def of __cxa_pure_virtual()
Browse files Browse the repository at this point in the history
  • Loading branch information
subvod committed Mar 24, 2023
1 parent fdd5c6e commit f61dfcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
void* operator new(size_t n) { return malloc(n); } // forget allocation failures, let them segfault.
void operator delete(void * p) { free(p); }
void operator delete(void * p, size_t n) { free(p); }
extern "C" void __cxa_pure_virtual() { abort(); }
// removed extern
// https://github.com/Alcaro/Flips/issues/26#issuecomment-573674247
// https://github.com/Alcaro/Flips/issues/32#issuecomment-1036141144
//extern "C" void __cxa_pure_virtual() { abort(); }

#if __GNUC__ && (__cpp_rtti || __cpp_exceptions)
#warning "Consider building with -fno-exceptions -fno-rtti, to avoid dependencies on libgcc_s_sjlj-1.dll and libstdc++-6.dll."
Expand Down

0 comments on commit f61dfcc

Please sign in to comment.