Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git 8df173f399d89c6c0f600ece6c0aa08f7cad61a6)

Options
Warnings
Don't Use Boost
C++2a(GNU)
no pedantic
Raw compiler options
-fcoroutines-ts -stdlib=libc++ -nostdinc++ -isystem/usr/lib/llvm-11/include/c++/v1/ -L/usr/lib/llvm-11/lib/ -Wl,-rpath,/usr/lib/llvm-11/lib

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -std=gnu++2a -fcoroutines-ts -stdlib=libc++ -nostdinc++ -isystem/usr/lib/llvm-11/include/c++/v1/ -L/usr/lib/llvm-11/lib/ -Wl,-rpath,/usr/lib/llvm-11/lib
prog.cc:26:27: warning: unused parameter 'int2dbl' [-Wunused-parameter]
    auto coro = [](auto&& int2dbl) -> task {
                          ^
1 warning generated.
/tmp/prog-be20fd.o:(.rodata._ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE[_ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE]+0x10): undefined reference to `std::__1::__shared_ptr_emplace<A<int>, std::__1::allocator<A<int> > >::~__shared_ptr_emplace()'
/tmp/prog-be20fd.o:(.rodata._ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE[_ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE]+0x18): undefined reference to `std::__1::__shared_ptr_emplace<A<int>, std::__1::allocator<A<int> > >::~__shared_ptr_emplace()'
/tmp/prog-be20fd.o:(.rodata._ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE[_ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE]+0x20): undefined reference to `std::__1::__shared_ptr_emplace<A<int>, std::__1::allocator<A<int> > >::__on_zero_shared()'
/tmp/prog-be20fd.o:(.rodata._ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE[_ZTVNSt3__120__shared_ptr_emplaceI1AIiENS_9allocatorIS2_EEEE]+0x30): undefined reference to `std::__1::__shared_ptr_emplace<A<int>, std::__1::allocator<A<int> > >::__on_zero_shared_weak()'
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
Exit Code:
1