Jump to content

'Leadwerks.h': No such file or directory


Go to solution Solved by Josh,

Recommended Posts

Posted

Hi, I'm new here :D
Trying LeadWerks 5 C++ (First Person Template), the release can't be compiled, I get the error on VS: 'Leadwerks.h': No such file or directory.
Also If I try to compile from the Leadwerks editor, I get error too:  Failed to create process 'New Project.exe'

What I'm doing wrong?

  • Like 1
  • Solution
Posted

When a new C++ project is created, the editor will attempt to create an environment variable called LEADWERKS, if it does not exist already. The environment variable points to your Leadwerks installation path and tells the compiler where to look for headers. It sounds like maybe you clicked "No" and did not let it create the environment variable, or maybe it failed to for some other reason?

See the section here titled "Environment Variable":
https://www.leadwerks.com/learn/Programming?lang=cpp

  • Like 1

Let's build cool stuff and have fun. :)

Posted

No, I didn't click "No" because Visual Studio didn't ask me anything this time.
Well, I think the problem might be the Ultra engine update to Leadwerks 5. I believe that's because my Windows environment variable is pointing to the wrong folder (the Ultra folder).

Now all works as expected.

BTW: You have a very nice game engine, I'm very excited to work with :)

  • Like 2
Posted

Yes, the dialog box is not displayed if ULTRA Engine was previously installed on the system, because a variable with the same name was created in it.
I think it's worth adding a variable value check in one of the next updates to fix this error.

Operating System: Windows 11 / KDE NEON

Hardware: Xeon E5-2620 v3  //  32 GB DDR4  //  NVIDIA GeForce RTX 3060 12Gb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...