# The CMAKE\_C\_COMPILER: pathto/qcc is not a full path to an existing compiler tool

**URL:** https://discourse.cmake.org/t/the-cmake-c-compiler-pathto-qcc-is-not-a-full-path-to-an-existing-compiler-tool/8361
**Category:** Usage
**Tags:** os:windows
**Created:** [June 20, 2023, 10:16am UTC](https://discourse.cmake.org/t/the-cmake-c-compiler-pathto-qcc-is-not-a-full-path-to-an-existing-compiler-tool/8361 "2023-06-20T10:16:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pramod](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/p/71c47a/32.png) [@pramod](https://discourse.cmake.org/u/pramod)
#### Post date: [June 20, 2023, 10:16am UTC](https://discourse.cmake.org/t/the-cmake-c-compiler-pathto-qcc-is-not-a-full-path-to-an-existing-compiler-tool/8361/1 "2023-06-20T10:16:55Z")

</div>

Hi,

I am trying to compile source code in windows environment using qcc compiler and facing this below error.  
– The C compiler identification is QCC 5.4.0  
CMake Error at CMakeLists.txt:22 (project):  
The CMAKE\_C\_COMPILER:

```
C:/path to/qcc

```

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment  
variable “CC” or the CMake cache entry CMAKE\_C\_COMPILER to the full path to  
the compiler, or to the compiler name if it is in the PATH.  
– Configuring incomplete, errors occurred!  
See also “C:/Users/pramod.kumar4/Desktop/libwebsockets\_build/libwebsockets-4.0-stable/CMakeFiles/CMakeOutput.log”.

I had created the CC environment variable and set the compiler path. Also tried setting the macro CMAKE\_C\_COMPILER before project() in CMakeLists.txt file.  
But still facing same issue.

---

<div class="post-metadata">

### Author: ![fdk17](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@fdk17](https://discourse.cmake.org/u/fdk17)
#### Post date: [June 25, 2023, 12:23pm UTC](https://discourse.cmake.org/t/the-cmake-c-compiler-pathto-qcc-is-not-a-full-path-to-an-existing-compiler-tool/8361/2 "2023-06-25T12:23:42Z")

</div>

Windows executables end in “.exe”. It looks like you may be running a Windows CMake in a MINGW shell; where the shell doesn’t need to include the .exe to run the executable.

I’ve run into something like this before. When you specify the compiler you need to include the file extension. E.g. qcc.exe
