-
Автор темы
- #1
лог краша
код
main.h
main.cpp
помогите пж
Код:
/usr/bin/ld: /tmp/main-93bd15.o: in function `main':
main.cpp:(.text+0x32): undefined reference to `std::cout'
/usr/bin/ld: main.cpp:(.text+0x3e): undefined reference to `std::ostream::operator<<(std::ios_base& (*)(std::ios_base&))'
/usr/bin/ld: main.cpp:(.text+0x57): undefined reference to `std::ostream::operator<<(bool)'
/usr/bin/ld: main.cpp:(.text+0x61): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
/usr/bin/ld: main.cpp:(.text+0x66): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
/usr/bin/ld: /tmp/main-93bd15.o: in function `__cxx_global_var_init':
main.cpp:(.text.startup+0xc): undefined reference to `std::ios_base::Init::Init()'
/usr/bin/ld: main.cpp:(.text.startup+0x13): undefined reference to `std::ios_base::Init::~Init()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
main.h
main.cpp
помогите пж