#help
21 messages · Page 1 of 1 (latest)
I don't see an error on that screenshot
homie needs to link against the standard library🗣️🗣️🗣️
I followed a YouTube tutorial y is it showing error 😭 what do i do to fix it?
I didn't understand what do u mean link against the standard library?
You click the first link here (https://stackoverflow.com/questions/26103966/how-can-i-statically-link-standard-library-to-my-c-program)
Or maybe you're just using the wrong version of your compiler or something, can't really tell you without seeing the Makefile
So step one link against standard library? Ok i will do that first
I am using replit
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
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.