CODE
#include <iostream>
int main()
{
std::cout<<"Hello, world!\n";
}
int main()
{
std::cout<<"Hello, world!\n";
}
Eclipse пишет: Symbol 'cout' could not be resolved
в консоли получаю сообщение
CODE
/home/user/Programming/eclipse/workspace/Hellocpp/hellocpp.cpp:15: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/home/user/Programming/eclipse/workspace/Hellocpp/hellocpp.cpp:17: undefined reference to `std::cout'
hellocpp.o: In function `__static_initialization_and_destruction_0':
/home/user/Programming/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.3.3/../../../../arm-arago-linux-gnueabi/include/c++/4.3.3/iostream:77: undefined reference to `std::ios_base::Init::Init()'
hellocpp.o: In function `__static_initialization_and_destruction_0':
/home/user/Programming/eclipse/workspace/Hellocpp/hellocpp.cpp:17: undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
make: *** [hellocpp] Error 1
/home/user/Programming/eclipse/workspace/Hellocpp/hellocpp.cpp:17: undefined reference to `std::cout'
hellocpp.o: In function `__static_initialization_and_destruction_0':
/home/user/Programming/ti-dvsdk_omapl138-evm_04_03_00_06/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.3.3/../../../../arm-arago-linux-gnueabi/include/c++/4.3.3/iostream:77: undefined reference to `std::ios_base::Init::Init()'
hellocpp.o: In function `__static_initialization_and_destruction_0':
/home/user/Programming/eclipse/workspace/Hellocpp/hellocpp.cpp:17: undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
make: *** [hellocpp] Error 1
помогите понять, что стряслось?