#help

21 messages · Page 1 of 1 (latest)

trim river
#

Y is it showing error 😭😭😭

modest island
#

I don't see an error on that screenshot

trim river
#

Wait

#

😦

#

It's my first code 😦

modest island
#

homie needs to link against the standard library🗣️🗣️🗣️

trim river
#

I followed a YouTube tutorial y is it showing error 😭 what do i do to fix it?

trim river
#

I didn't understand what do u mean link against the standard library?

modest island
#

Or maybe you're just using the wrong version of your compiler or something, can't really tell you without seeing the Makefile

trim river
#

So step one link against standard library? Ok i will do that first

modest island
#

Probably tries to compile the two files you have in there into one binary

#

Which doesn't work out because you have the main function defined in (presumably?) both files

hushed saddle
#

I see that the linker error by screenshot has multiple definitions of the main function. There should only be one main function per C++ program.

trim river
#

Ooh ok i will delete the rest thanks for the help ❤

#

I will update u after doing so 🙂

#

I am eating dinner now will do it after finishing dinner