Skip to content

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

@davidi99

Description

@davidi99

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions