Closed
Description
Getting a linker error (branch wip_alloc_example):
target/debug/xargo(data.o): In function `__rg_realloc':
some_file.o:(.text.__rg_realloc+0x56): undefined reference to `core::alloc::Layout::from_size_align_unchecked'
some_file.o:(.text.__rg_realloc+0x84): undefined reference to `alloc_system::platform::<impl core::alloc::GlobalAlloc for alloc_system::System>::realloc'
target/debug/xargo(data.o): In function `xargo::main':
some_file.o:(.text._ZN5xargo4main17h7ba4cb1b7386fe5eE+0x7f): undefined reference to `alloc::alloc::exchange_malloc'
target/debug/xargo(data.o): In function `core::ptr::drop_in_place':
some_file.o:(.text._ZN4core3ptr13drop_in_place17hefa8a925b43607b3E+0xc): undefined reference to `alloc::alloc::box_free'
target/debug/xargo(data.o): In function `__rg_dealloc':
some_file.o:(.text.__rg_dealloc+0x3c): undefined reference to `core::alloc::Layout::from_size_align_unchecked'
some_file.o:(.text.__rg_dealloc+0x5f): undefined reference to `alloc_system::platform::<impl core::alloc::GlobalAlloc for alloc_system::System>::dealloc'
target/debug/xargo(data.o): In function `__rg_alloc':
some_file.o:(.text.__rg_alloc+0x4a): undefined reference to `core::alloc::Layout::from_size_align_unchecked'
some_file.o:(.text.__rg_alloc+0x65): undefined reference to `alloc_system::platform::<impl core::alloc::GlobalAlloc for alloc_system::System>::alloc'
target/debug/xargo(data.o): In function `__rg_alloc_zeroed':
some_file.o:(.text.__rg_alloc_zeroed+0x4a): undefined reference to `core::alloc::Layout::from_size_align_unchecked'
some_file.o:(.text.__rg_alloc_zeroed+0x65): undefined reference to `alloc_system::platform::<impl core::alloc::GlobalAlloc for alloc_system::System>::alloc_zeroed'