x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

in 4.8.2 anytime I modify the generated GameMode.h header for a C++ project (I tried both 3rd and 1st Person Templates) the project stops compiling

in 4.8.2 anytime I modify the generated GameMode.h header for a C++ project (I tried both the 3rd and 1st Person Templates) the project stops working. All I have to do for it to break is add another #include and it stops compiling alt text

Doing the same thing in 4.7.6 works perfectly.

I was following the C++ 3rd person tutorial and when I got to the game mode and tried to add an enum class to the header, the project just stopped building properly.

Product Version: UE 4.8
Tags:
unreal error.png (15.1 kB)
more ▼

asked Jul 20 '15 at 11:06 AM in C++ Programming

avatar image

manfredo
1 1

avatar image thk123 Jul 20 '15 at 11:11 AM

Could you provide the output from when you compile it? The error in the screenshot occurs because the code generation needs to be rerun.

avatar image manfredo Jul 20 '15 at 01:20 PM

Thanks! That was very helpful! Somehow being new to UCLASS was throwing me, I was trying to fix the problems in the Error List. By looking at the output I found the real reson the project was not compiling. Still, in 4.7.6 intelliSense was not complaining about the UCLASS as it does here, that also sent me looking in ther wrong place.

It's fine now Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Modifying the header file seems to invalidate the MyClass.generated.h. If errors are related to the generated code (e.g. the UCLASS macro, binding to delegates, etc.) it is worth at least doing a compile so at least you get real errors (or, as in this case, eliminating them!).

more ▼

answered Jul 20 '15 at 03:19 PM

avatar image

thk123
581 37 47 78

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I just ran into the same problem.

Solution was to close Visual Studio and Unreal Editor, then go to your project folder like ...

C:\Users\...\Documents\Unreal Projects\MyProject1

... and delete the Intermediate folder, then right click your MyProject1.uproject file and select ...

Generate Visual Studio project files

When he is done, open your project again in Unreal Editor / Visual Studio and you should be fine. :)

Edit

I also found out that those errors mostly have their origin in a problem in your code. So instead listening to what the Error List output says, switch to the Output tab, scroll up a bit and you should see the cause.

more ▼

answered Jan 31 '16 at 06:49 PM

avatar image

nuclearping
1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question