0

enter image description here

Actually, when i compile the file ,it works perfectly, but the wrong hint disturb me .

I have installed the stdc++ clang,gcc. they are no problem. How can i fix it ?

ri yo
  • 3
  • 3

1 Answers1

0

Clang Error - stddef file not found? I finally find out the answer. fixing it by add

if(CMAKE_EXPORT_COMPILE_COMMANDS)
    set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
endif()

to my cMakelists.txt

ri yo
  • 3
  • 3