Announcement

Collapse
No announcement yet.

Brush.h

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Brush.h

    Hi,

    I'm trying to create a ABlockingVolume.

    But as soon as I try to include "Engine/Brush.h" I get the error below.
    All I have to do is to include Brush.h and nothing else and I get this error???
    I did not compile the engine from source.

    1>x:\program files\unreal engine\4.4\engine\source\runtime\core\public\uobject\WeakObjectPtrTemplates.h(45): error C2338: TWeakObjectPtr can only be constructed with UObject types
    1> x:\program files\unreal engine\4.4\engine\source\runtime\core\public\uobject\WeakObjectPtrTemplates.h(40) : while compiling class template member function 'TWeakObjectPtr<ULevel,FWeakObjectPtr,FIndexToObject>::TWeakObjectPtr(const T *)'
    1> with
    1> [
    1> T=ULevel
    1> ]
    1> X:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Engine\Classes\Engine/Brush.h(200) : see reference to function template instantiation 'TWeakObjectPtr<ULevel,FWeakObjectPtr,FIndexToObject>::TWeakObjectPtr(const T *)' being compiled
    1> with
    1> [
    1> T=ULevel
    1> ]
    1> X:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Engine\Classes\Engine/Brush.h(200) : see reference to class template instantiation 'TWeakObjectPtr<ULevel,FWeakObjectPtr,FIndexToObject>' being compiled

    #2
    Am I doing something wrong??

    Comment


      #3
      bump bump bump

      Comment


        #4
        Hi MiniTurtle,

        Please refrain from bumping threads that have not gone unanswered for 4 or more days. This clutters the forums and makes it difficult to parse through and assist users. Thank you.
        Adam Davis | Marketplace Support | Epic Games
        How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

        Comment


          #5
          Brush.h appears to have a dependency on Level.h. If you don't have Level.h already included at the point you include Brush.h that will occur. I've changed it so that Brush.h properly includes Level.h to avoid having to make that manual dependency.

          Comment


            #6
            Originally posted by Marc Audy View Post
            Brush.h appears to have a dependency on Level.h. If you don't have Level.h already included at the point you include Brush.h that will occur. I've changed it so that Brush.h properly includes Level.h to avoid having to make that manual dependency.
            Thank you very much

            Comment

            Working...
            X