# Let CRT take care of the entry point for wWinMain if libc is linked · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b31a03f134792b8fae20a625f68499c6548f8443)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b31a03f134792b8fae20a625f68499c6548f8443

Requested commit: b31a03f134792b8fae20a625f68499c6548f8443

Commit: b31a03f134792b8fae20a625f68499c6548f8443

Tree: ad42b9f6811ab64efc449cb2fdcdb05868e3128b

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

````
Let CRT take care of the entry point for wWinMain if libc is linked

Fixes #7852

Before, the modified test would fail with:

```
error: lld-link: undefined symbol: wWinMain
    note: referenced by C:\Users\Ryan\Programming\Zig\zig-x86_64-windows-0.15.1\lib\libc\mingw\crt\crtexewin.c:66
    note:               libmingw32.lib(ucrtexewin.obj):(wmain)
```

````

## Parents

- [be4eaed7c41fb194014d862648ff586797e39e84](https://git.cafe/gitcafe/zig/commit/be4eaed7c41fb194014d862648ff586797e39e84?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b31a03f134792b8fae20a625f68499c6548f8443?format=markdown)
