Question: keep getting a undefined refrence to main error and i dont know why. the goal is to get the program to print out hello, name.

keep getting a undefined refrence to main error and i dont know why. the goal is to get the program to print out hello, name. where name is a user input.
 keep getting a undefined refrence to main error and i dont

File Edit Selection View Go Run hello You.cpp - CSC11300 [WSL: Ubuntu] - Visua... EXPLORER 8 Q > .vscode > hmwk 1 > hmwko v hmwk2 hello You.cpp Los Get Started ChelloYou.cpp hmwk2 > hello You.cpp 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 cout > name; 11 cout bash flmain.. 1300/hmk2$ 8++ helloyou.cpp -std-CH17 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../ bash filmain... x86_64-linux-gnu/Scrti.o: in function start": > bash hmwko (.text+0x24): undefined reference to main collect2: error: ld returned 1 exit status bash hrnk2 P:/mnt/c/users > bash hmwk2 wk2$ gh+ helloYou.cpp -std=cH17 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../ x86_64-linux-gnu/Scrti.o: in function start': (.text+0x24): undefined reference to 'main' collect2: error: ld returned 1 exit status 3:/mnt/c/Users/ > OUTLINE mwk2$ > WSL: Ubuntu 0AO > (Windows) Launch (CSC1300) In 14, Col2 Spaces: 4 UTF-8 LF C++ c 8 03

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!