TCC & CLion errors
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 writing 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 the 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}
)
Additional info:
CMAKE settings
Sample error in valid cJSON file Sample error
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 tried to use same TCC version (from disk and from website)
Does anyone know how to solve this situation?
Keep in mind that code in clion builds fine with this settings, but editor shows errors.
请先登录再写评论。