# CMAKE C compiler not found

**URL:** https://discourse.cmake.org/t/cmake-c-compiler-not-found/10130
**Category:** Usage
**Created:** [February 18, 2024, 1:41pm UTC](https://discourse.cmake.org/t/cmake-c-compiler-not-found/10130 "2024-02-18T13:41:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Wafi](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ahmed_wafi/32/4323_2.png) [@Ahmed\_Wafi](https://discourse.cmake.org/u/Ahmed_Wafi)
#### Post date: [February 18, 2024, 1:41pm UTC](https://discourse.cmake.org/t/cmake-c-compiler-not-found/10130/1 "2024-02-18T13:41:00Z")

</div>

hi every one!..im new to cmake and am follow a tutorial on [learnopengl.com](http://learnopengl.com)…so when i hit configure it`s give ,this error:  
The C compiler identification is unknown  
CMake Error at CMakeLists.txt:3 (project):  
No CMAKE\_C\_COMPILER could be found.  
Configuring incomplete, errors occurred!

these are installitions in VC2022:

 ![لقطة الشاشة 2024-02-18 153846](https://discourse.cmake.org/uploads/default/original/2X/5/599c269ba4841c1464f6349f7f110e9bceb608a0.png)

how can i solve this?..and sorry if ,my english is bad

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 19, 2024, 4:08am UTC](https://discourse.cmake.org/t/cmake-c-compiler-not-found/10130/2 "2024-02-19T04:08:18Z")

</div>

If you’re using a command prompt, you need to do one of:

- use a Visual Studio generator (the IDE knows how to run the compiler)
- use a Developer Command Prompt
- load the compiler environment manually via `vcvarsall.bat`

---

<div class="post-metadata">

### Author: ![Ahmed\_Wafi](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ahmed_wafi/32/4323_2.png) [@Ahmed\_Wafi](https://discourse.cmake.org/u/Ahmed_Wafi)
#### Post date: [February 19, 2024, 1:31pm UTC](https://discourse.cmake.org/t/cmake-c-compiler-not-found/10130/3 "2024-02-19T13:31:39Z")

</div>

Am good now I just downloaded a pre-complied package for now I think I don’t need cmake for now😅… but I appreciate your help bro huge thanks\<3!..
