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"

Including module header breaks FontCache.h

Hi! I've followed this tutorial about linking static libraries

But whenever I try to add a custom header file on a test actor, with the function declarations, this happens:

 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(232): error C2059: syntax error: 'constant'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(232): error C2238: unexpected token(s) preceding ';'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(227): error C2059: syntax error: 'constant'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(397): error C2059: syntax error: 'constant'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(401): error C2039: 'InSourceTextIndex': is not a member of 'FShapedGlyphSequence::FSourceTextRange'
 2>  C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(224): note: see declaration of 'FShapedGlyphSequence::FSourceTextRange'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(402): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(402): error C2039: 'int32': is not a member of 'FShapedGlyphSequence::FSourceTextRange'
 2>  C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(224): note: see declaration of 'FShapedGlyphSequence::FSourceTextRange'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(402): error C2146: syntax error: missing ';' before identifier 'InternalIndex'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(402): error C2039: 'InternalIndex': is not a member of 'FShapedGlyphSequence::FSourceTextRange'
 2>  C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(224): note: see declaration of 'FShapedGlyphSequence::FSourceTextRange'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(402): error C2039: 'InSourceTextIndex': is not a member of 'FShapedGlyphSequence::FSourceTextRange'
 2>  C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(224): note: see declaration of 'FShapedGlyphSequence::FSourceTextRange'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(402): error C2039: 'SourceTextRange': is not a member of 'FShapedGlyphSequence::FSourceTextRange'
 2>  C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(224): note: see declaration of 'FShapedGlyphSequence::FSourceTextRange'
 2>C:\Program Files (x86)\Epic Games\4.11\Engine\Source\Runtime\SlateCore\Public\Fonts\FontCache.h(403): error C2065: 'InternalIndex': undeclared identifier
 2>  -------- End Detailed Actions Stats -----------------------------------------------------------


ServerActor.h

 #pragma once
 
 #include "GameFramework/Actor.h"
 #include "snap7.h"
 #include "ServerActor.generated.h"
 
 UCLASS()
 class TESTPLC_API AServerActor : public AActor
 {
     GENERATED_BODY()
 
 public:    
     
     // Sets default values for this actor's properties
     AServerActor();
 
     // Called when the game starts or when spawned
     virtual void BeginPlay() override;
     
     // Called every frame
     virtual void Tick( float DeltaSeconds ) override;      
     
 };


The header file is located in ThirdParty/Snap7/Includes and this route is included in the VC++ directories

Any help is greatly appreciated

Product Version: UE 4.11
Tags:
more ▼

asked Jun 06 '16 at 11:37 PM in C++ Programming

avatar image

Vagnus
1 1 2 5

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

0 answers: sort voted first
Be the first one to answer this question
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