Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.1 20200222 (experimental)

Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
Raw compiler options
f.cpp g.cpp a.cpp

Author

anonymous

over 5 years ago

a.hpp
f.cpp
g.cpp
a.cpp

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a f.cpp g.cpp a.cpp
/tmp/ccBLyJDQ.o: In function `main':
prog.cc:(.text+0x10): undefined reference to `A<int>::f()'
prog.cc:(.text+0x1c): undefined reference to `A<int>::g()'
prog.cc:(.text+0x28): undefined reference to `A<short>::f()'
prog.cc:(.text+0x34): undefined reference to `A<short>::g()'
collect2: error: ld returned 1 exit status
Exit Code:
1