When compiling a project in the main.cpp file, an error occurs:
Error: ld returned 1 exit status
in path C: \ directory \ proj \ collect2.exe [Error] ld returned 1 exit status
Moreover, the proj folder was created by itself in the folder with *cpp and *.h at compile time. And there is no collect2.exp file there.
ZStorSt13_Ios_OpenmodeS_': ...\main.cpp multiple definition ofmain' ... \ proj \ collect2.exe [Error] ld returned 1 exit status These are the errors - Order_Bymain(), there can be no more than one function with the same name (and the same signatures, but this is not the case withmain(), it should always be the same) - PinkTuxmain()2 times. No one needs it more than once. This is the only entry point into the program, and the second can not be. - PinkTux