# The C compiler is not able to compile a simple test program

**URL:** https://discourse.cmake.org/t/the-c-compiler-is-not-able-to-compile-a-simple-test-program/3177
**Category:** Usage
**Tags:** os:windows
**Created:** [April 20, 2021, 2:47pm UTC](https://discourse.cmake.org/t/the-c-compiler-is-not-able-to-compile-a-simple-test-program/3177 "2021-04-20T14:47:51Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ymba9g8j9cjp0wloqf5y/32/1244_2.png) [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)
#### Post date: [April 20, 2021, 8:32pm UTC](https://discourse.cmake.org/t/the-c-compiler-is-not-able-to-compile-a-simple-test-program/3177/5 "2021-04-20T20:32:49Z")

</div>

I realize it’s not ideal but try using the meson instructions. At least for setting up your toolchain environment.

Use this for setting up your compilers/linkers. Ignore everything else regarding meson.  
[https://mesonbuild.com/SimpleStart.html](https://mesonbuild.com/SimpleStart.html)

---

_[View the full topic](https://discourse.cmake.org/t/the-c-compiler-is-not-able-to-compile-a-simple-test-program/3177)._
