Language
C++
Compiler
gcc HEAD 9.0.0 20180807 (experimental)
Options
Warnings
Boost 1.67.0
C++14
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-head/include -std=c++14
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20180807 (experimental)
Author
anonymous
over 6 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/ccbIlWQs.o: In function `TemplateCaller()':
prog.cc:(.text+0x9): undefined reference to `SetupMem(std::integral_constant<int, 4>)'
prog.cc:(.text+0x11): undefined reference to `SetupMem(std::integral_constant<int, 8>)'
collect2: error: ld returned 1 exit status