Why is GCC saying multiple definitions of main? I have one main [closed]

Check the linker. Usually that means another object file is being compiled at the same time that also contains a main function. There must only be one main function within all associated files.

Leave a Comment