So when i try to compile my source code with GCC it spits out with the error
and my source is a simple hello world but can anybody tell me what i do wrong?
Code
gcc -std=c++11 helloworld.cpp
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit statusand my source is a simple hello world but can anybody tell me what i do wrong?
Code
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
using namespace std;
int main()
{
cout << "hello word\n";
return 0;
}


![[Image: MtOuiI0.png]](https://i.imgur.com/MtOuiI0.png)
![[Image: T4BXHDP.png]](https://i.imgur.com/T4BXHDP.png)
![[Image: chain.png]](https://i.postimg.cc/NFnfH9zY/chain.png)