I can’t program in C++ and I don’t know why when the blueprint graphs and the editor are working fine outside of that. I can provide details as needed. As far as I know it’s all stemming from a problem with linking files together, so the different methods etc. aren’t defined, and that’s most likely a problem on Visual Studio’s side because I’ve redownloaded the engine from scratch recently, and like I said, only Visual Studio is having problems as far as I can see. I have some substantial coding experience but I’m very new to programming in something as big as this engine is, and I don’t really understand as much as I should about file management and more abstract computing processes so any help on this would be appreciated.
Linking issues are generally one of 3 things :
- forgot to implement a function declared in a header, or forgot to add the
_Implementationsuffix in case of a BlueprintNativeEvent - did not include a dependent module in
Build.csfile - trying to use an API that is not exported - this is similar to (2) except that there is no module to include, so no easy solution. This happens sometimes when you try to subclass classes the engine did not intend for you to subclass, or use functions not exported.
Unfortunately cannot help further unless you share the errors you are getting.
Can recommend Rider, VS always gives me lots of false erros
My experience: the intellisense errors are often spurious, you can’t believe them until you compile and get errors. The other thing I’ve learned is, since I’m only making plugins and not working on the engine itself, right-click the plugin project in the outliner, and build it from there instead of trying to build the entire solution.
Also, despite all the integration tools and hot-reloading promises, I’ve always had to quit Unreal Editor in order to successfully compile.
There’s usually a list of around 100 of them, which I’m pretty sure all stem from the headers not being included properly because it’s mostly issues with something not being defined or the compiler not understanding the type, but I have all these errors and it’s not really from any code I wrote as far as I know, especially because I barely wrote any and didn’t mess around with the locked files. The one thing I think it might be is that I changed some settings in Visual Studio at some point, which I definitely shouldn’t have done, but I’m pretty sure I’ve since uninstalled and reinstalled the whole thing so I would’ve assumed it would reset the settings too. There are errors for a lot of the included header files not being opened, for things deep rooted in the system like CoreMinimal.h and GameFramework/Actor.h, which I assume are pretty big, and I definitely didn’t make them. For added context I’ve uninstalled and reinstalled the engine a few times thinking that would fix my problems, so maybe there are conflicting files, but I got rid of the folders in C:\Program Files\Epic Games before downloading 5.7 last time. Anyway, thank you for the information so far. I’ll try looking into the Build.cs file because a few things have vaguely referenced that as something relevant here already so that’s probably it, but I don’t want to screw anything up
Those are intellisense errors. Unfortunately, as others mentioned, you generally cannot trust them. Although sometimes intellisense does work properly after at least one compilation, but it’s quite lunatic.
To compile for real and get real errors, either right click project name in solution explorer and click Build, or build it from the Build menu, or ctrl+B.
After building, VS might show you the “Error List” tab if you haven’t disabled it (UE installation tutorial suggests to disable it), click on the “Output” tab instead to see real errors.
I’ll have to try that soon then because I’m pretty sure I did click build on the project under the games folder and it didn’t have errors, so maybe this is all completely made up. Am I correct that everything in the Engine folder is effectively built already, so to compile efficiently, I should click build on the immediate project or whatever it is under the games folder with the white square and purple stars icon? And that should build whatever actors are associated with the uproject?
