Як виправити помилку С2731: 'mian': function can be overloaded

matzenko art 0 Reputation points
2024-05-15T08:55:52.4533333+00:00

int main(int argc, char** argv) {

::testing::InitGoogleTest(&argc, argv);

return RUN_ALL_TESTS();
```}
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,584 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Minxin Yu 10,456 Reputation points Microsoft Vendor
    2024-05-16T02:24:44.76+00:00

    Hi, @matzenko art

    Error С2731 means that your project may have multiple main functions, please check your entire project .
    User's image

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments