Syntax error when compiling in Windows CE

Asked

Viewed 81 times

0

It is possible to make a Browser for windows CE using Lazarus?

I made one with Gecko component but not compiled for windows CE, has some configuration to be done or it is not supported even?

The following error occurs:

Fatal: Syntax error, "Identifier" expected but "CONST" found

Does anyone know how to proceed?

The error is displayed in the file C: Lazarus Components geckoport_v1 nsConsts.pas

When I compile for windows 7, it builds and runs normally, but when I compile for windows CE the error occurs.

On this line the error occurs:

unit nsConsts;

interface

const
{$IFDEF MSWINDOWS}
  XPCOM_DLL = 'xpcom.dll';
  XUL_DLL = 'xul.dll';
{$ENDIF}
{$IFDEF UNIX}
  XPCOM_DLL = 'libxpcom.so';
  XUL_DLL = 'libxul.so';
{$ENDIF}

const
  GRE_MOZILLA_WIN_REG_LOC = 'Software\mozilla.org\GRE\';
  GRE_FIREFOX_BASE_WIN_REG_LOC = 'SOFTWARE\Mozilla\Mozilla Firefox';

  // 1.7 Release
  MOZILLA_VERSION = 1.7;
  GRE_BUILD_ID = '1.7_2004061609';
  NS_BUILD_ID = 2004061609;

  // 1.7.1 Release
  //MOZILLA_VERSION = 1.7;
  //GRE_BUILD_ID = '1.7.1_2004070721';
  //NS_BUILD_ID = 2004070721;

  // 1.7.2 Release
  //MOZILLA_VERSION = 1.7;
  //GRE_BUILD_ID = '1.7.2_2004080302';
  //NS_BUILD_ID = 2004080302;

  // 1.7.3 Release
  //MOZILLA_VERSION = 1.7;
  //GRE_BUILD_ID = '1.7.3_2004091008';
  //NS_BUILD_ID = 2004091008;

  // 1.7.5 Release
  //MOZILLA_VERSION = 1.7;
  //GRE_BUILD_ID = '1.7.5_2004122323';
  //NS_BUILD_ID = 2004122323;

  // 1.7.6 Release
  //MOZILLA_VERSION = 1.7;
  //GRE_BUILD_ID = '1.7.6_2005031907';
  //NS_BUILD_ID = 2005031907;

  // 1.7.7 Release
  //MOZILLA_VERSION = 1.7;
  //GRE_BUILD_ID = '1.7.7_2005041417';
  //NS_BUILD_ID = 2005041417;

implementation

end.
  • This error seems to be a "Generic" error, could show the code what you have done so far?

  • I edited the question @Guilhermenascimento with more information. The error occurs in the component code itself.

  • What comes before const? By the error message the problem occurs because he expected something else, post a code that can be reproduced from the problem (or the code as whole as possible)

  • There is the whole Guilherme code, remembering that the error occurs in the const above GRE_MOZILLA_WIN_REG_LOC

  • Friend the night I will test, yes it occurs above why the problem is some previous instruction looking for something but find the const along the way, it’s a generic mistake.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.