Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4. Compare and contrast the practices of the two companies.

Answered: 1 week ago