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"

(C++) Pointer-to-incomplete class type is not allowed

Hey guys. I really don't know what to do anymore. I am getting an error while compiling. Can someone please help me to fix it? The console says that the issue is "Inventory" (Error: Pointer-to-incomplete class type is not allowed)

(The lines) http://fs5.directupload.net/images/161030/p4w8rkgp.png

Product Version: UE 4.13
Tags:
more ▼

asked Oct 30 '16 at 01:08 PM in C++ Programming

avatar image

Antichroma
1 1 2 2

avatar image Titirez Oct 30 '16 at 01:25 PM

That image is very very small, i can't read the text :)

avatar image Antichroma Oct 30 '16 at 09:12 PM

"That image is very very small, i can't read the text :)"

UTexture2D* ATerraCharacter::GetThumbnailAtInventorySlot(uint8 Slot) { if (Inventory[Slot] != NULL) { return Inventory[Slot]->PickupThumbnail; } else return nullptr; }

"You are probably missing an include of the class."

I don't thinkt that I am missing an include.
avatar image IAmCurrahee Oct 30 '16 at 09:39 PM

I think you might be missing an include as the compiler can't find the definition of the class. Try adding:

#include "Engine/Texture2D.h"

avatar image Antichroma Oct 30 '16 at 10:21 PM

I tried this out, but it didn't fix the problem.

avatar image Moss Oct 31 '16 at 07:42 AM

My guess is that you are missing the header for your Inventory class.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You are probably missing an include of the class.

more ▼

answered Oct 30 '16 at 01:35 PM

avatar image

Holybreath
378 10 6 19

(comments are locked)
10|2000 characters needed characters left
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