Beginner c++ question with libraries

So I just started learning the C++ part of UE and decided to learn how to do some threading.

Tutorials and chat GPT codes I came across all use HAL libraries, but when I add “HAL” to the public dependency module names array in build.cs code, I get an error and can’t build the project.

What is the problem? Do I need to download extra plugins to make this work? Thanks for any help in advance!

EDIT(The build.cs code):

HAL is not added as a module

When you inherit from FRunnable you need to include

#include "HAL/Runnable.h"

inside of the header where you implement a class based on FRunnable.

Look at the engine source. Do not rely on ChatGPT

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.