Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180807 (experimental)

Options
Warnings
Boost 1.67.0
C++14
no pedantic

Author

anonymous

almost 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=c++14
prog.cc: In function 'void TemplateCaller()':
prog.cc:12:9: warning: unused variable 'a' [-Wunused-variable]
    auto a = SetupMem(ic<4>{});
         ^
prog.cc:13:9: warning: unused variable 'b' [-Wunused-variable]
    auto b = SetupMem(ic<8>{});
         ^
/usr/lib/x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/ccyVOUlS.o: In function `TemplateCaller()':
prog.cc:(.text+0x9): undefined reference to `SetupMem(ic<4>)'
prog.cc:(.text+0x11): undefined reference to `SetupMem(ic<8>)'
collect2: error: ld returned 1 exit status
Exit Code:
1