Compile Palabos in VS Code linux missing header file


This always happens when I compile Palabos with VS under Linux, I don’t know what’s wrong.

Thank you,best regards.

It is mainly because you didn’t provide the necessary information of the Palabos library so that the compiler has no idea where the header files are.

You could use CMake to build the tutorial/your own projects with the provided CMakeLists.txt. If you are using VS Code, you could install the extension CMake or CMake Tools.

Otherwise, you could run the following in the tutorial folder in the terminal

mkdir build
cd build
cmake ../

Here you could find some basics of CMake:
Quick CMake tutorial | CLion (
Learn X in Y Minutes: Scenic Programming Language Tours
and what I found useful to learn about the basics of C++ compiler and linker

Thank you for your answer.
I have run the cmake in the terminal, but it still doesn’t compile in Vs Code.

As the picture seen, but I can compile through the terminal which in the Vs Code.

I think whether these three files are wrong.

Best regards.

Check Get started with CMake Tools on Linux (

You should type CMake: build instead of Tasks: run build task in the command palette.