AnsweredAssumed Answered

ArcGIS Runtime for Qt.  syntax error : missing ';' before '*' when compiling rtsample.h

Question asked by bowleysj on Aug 10, 2014
Latest reply on Dec 15, 2014 by LDanzinger-esristaff

Hello,

Has anyone encountered this problem with the Qt runtime sample code?

When including the rtsample.h file in my map project, Qt creator throws a syntax error in the rtsample.h file.

 

C:\Users\Steve\Documents\SDK\Projects\MyFirstMap\rtsample.h:73: error: C2143: syntax error : missing ';' before '*'

 

fails on Line 73: QTextEdit* getSourceFile(const QString& fileName);

 

It doesn't like the *, says there is a missing ;

 

private:

  QTextEdit* getSourceFile(const QString& fileName);
  void addSourceTab(const QString& fileName);

 

Looks fine to me, same as the sample code, but won't compile.

 

Using:

Qt-5.1.1-32,

qtcreator-3.1.2

arcgisruntime10.2.3

 

any help much appreciated!

 

Steve

Outcomes