I’ve setup successfully the CLion + TCC enviroment on the windows 10 machine. My colleague asked me for help with that so i shared the CLion project and he:
- unpacked the TCC in the right directory,
- he opened project using CLion
- build project successfully
You may ask why i am writting this if it looks ok, it is not ok because CLion shows that code has errors with macros, highlights as errors cJSON library etc…
I’ve tried same setup as i did:
- Win10 PRO/ENTERPRISE
- TCC 0.9.27
- CLion EAP/newest version/2024.1.4
CMake looks like that:
cmake_minimum_required(VERSION 3.28)
project(projectname C)
set(CMAKE_C_STANDARD 99)
include_directories("C:\tcc\include\")
include_directories("C:\tcc\include\winapi\")
include_directories(${PROJECT_SOURCE_DIR})
set(libraries
sample.c
)
add_executable(projectname main.c
${libraries}
)
CMAKE settings
[CMAKE settings](https://i.sstatic.net/A92Az8JT.png)
TOOLCHAIN settings
[TOOLCHAIN settings](https://i.sstatic.net/oLkWBzA4.png)
Sample error in **valid cJSON** file
[Sample error](https://i.sstatic.net/YjQAV9mx.png)
I tried to setup enviroment 1:1 the same as my working one (system, ide version, everything),
I tried to export the CLion settings and import it to new enviroment,
I tired to use same TCC version (from disk and from website)
New contributor
Krzysztof 666 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.