U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » error: duplicate symbol: std::__throw_bad_alloc()
error: duplicate symbol: std::__throw_bad_alloc() [message #54624] Sat, 22 August 2020 18:19 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
When using the Bazaar/plugin/assimp package, I got an error at linking (only when using CLANG) (MSVS work perfect) :
 (): Linking has failed
 (): lld-link: error: duplicate symbol: std::__throw_bad_alloc()
 (): >>> defined at Core.a(heap.o)
 (): >>> defined at libc++.a(new.cpp.obj)
 (): 
 (): lld-link: error: duplicate symbol: operator new(unsigned long long)
 (): >>> defined at Core.a(heap.o)
 (): >>> defined at libc++.a(new.cpp.obj)
  ...


The only way I have found to get around this issu is to put the flag "USEMALLOC" but I don't think it's a good way.
I don't know if this"problem" is related to Upp or assimp.

Someone can help me by explaining what's happening ?

Thanks
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Building applications
Next Topic: Custom build configuration per package
Goto Forum:
  


Current Time: Mon Jun 15 12:24:17 GMT+2 2026

Total time taken to generate the page: 0.00672 seconds