Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 3 years ago

Language

C++

Compiler

clang 14.0.0

Options
Warnings
Optimization
Boost 1.79.0
C++11
-pedantic
Raw compiler options
class.cpp

Author

anonymous

about 3 years ago

class.h
class.cpp

$ clang++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.79.0-clang-14.0.0/include -std=c++11 -pedantic class.cpp
/usr/bin/ld: /tmp/prog-56679a.o: in function `main':
prog.cc:(.text+0x1b): undefined reference to `Property<int>::operator=(int const&)'
/usr/bin/ld: prog.cc:(.text+0x28): undefined reference to `operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, Property<int>&)'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
Exit Code:
1