The water-plant solution wrong

/usr/lib/gcc/x86_64-linux-gnu/7/…/…/…/x86_64-linux-gnu/crt1.o: In function _start': (.text+0x20): undefined reference tomain’
collect2: error: ld returned 1 exit status

When putting together my code, it gives me this error, but then I run the solution Codecademy provides me and I get the same error message. What can be happening?

That same error has been popping up in C++ lessons since sometime yesterday. Your code is not the reason for the error. There is a problem with the console behavior in the C++ lessons. Hopefully it will be fixed soon :crossed_fingers:

1 Like

Thank you! thought I was going crazy

1 Like

ok, everything is working now.