Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use standard main function on MinGW #2441

Open
wants to merge 2 commits into
base: v2.x
Choose a base branch
from

Conversation

aminya
Copy link

@aminya aminya commented Jun 1, 2022

Description

Once you define the CATCH_CONFIG_MAIN definition on MinGW, it defines a non-standard main function called WinMain. This results in a lot of undefined references. This doesn't happen with other compilers.

This check ensures that the standard main file is used with MinGW.

GitHub Issues

Fixes #2437

@codecov
Copy link

codecov bot commented Jun 2, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.08%. Comparing base (a7782d1) to head (40d1268).
Report is 2 commits behind head on v2.x.

Additional details and impacted files
@@           Coverage Diff           @@
##             v2.x    #2441   +/-   ##
=======================================
  Coverage   90.08%   90.08%           
=======================================
  Files         113      113           
  Lines        5040     5040           
=======================================
  Hits         4540     4540           
  Misses        500      500           

Copy link
Author

@aminya aminya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #2437 (comment) for some discussion

@protos-gunzinger
Copy link

Hello there, first of all thank you for your PR.
Seeing as this problem still exists / happened to me now in April of 2024, is there any reason this was never addressed/merged?

@aminya
Copy link
Author

aminya commented Apr 18, 2024

Fixed the conflicts so that it could be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants