catchorg / catchorg/Catch2

SelfTest.exe not generated when building using C++Builder 12.2 IDE - fails in link step with "undefined symbol:WinMain

Open
#2,957 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Describe the bug**
c:\program files (x86)\embarcadero\studio\23.0\Bin\CodeGear.Cpp.Targets(4608,5): error : ld.lld: error: undefined symbol: WinMain

**Expected behavior**
C++Builder BCC64.exe builds correctly and SelfTest.exe is generated and runs.

**Reproduction steps**
Load C++Builder 12.2 IDE after using GetIt to download and install Catch2.
In the IDE - do a Build All for Win64 target platform - builds and runs. Do a Build All for the Win64 (Modern) target which uses BCC64x compiler. Gets error in Link step for SelfTest

**Platform information:**
- OS: **Windows 10**
- Compiler+version: **c:\Program Files (x86)\Embarcadero\Studio\23.0\bin64>bcc64x.exe
Embarcadero C++ 7.70 for Win64/COFF Copyright (c) 2012-2024 Embarcadero Technologies, Inc.**
- Catch version: **v3**

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.