C++ Помргите линкер ерор

Эксперт
Статус
Оффлайн
Регистрация
29 Мар 2021
Сообщения
1,595
Реакции[?]
603
Поинты[?]
44K
лог краша
Код:
/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
1710255423948.png

main.cpp
1710255476979.png

помогите пж
 
Сверху Снизу