* * *

Author Topic: compproc.inc Error: Fields cannot appear after a method or property definition  (Read 592 times)

BriggsBFC

  • Newbie
  • Posts: 2
Hi,

I followed the instructions here: http://wiki.lazarus.freepascal.org/Android_tutorial#Rebuild_Lazarus_IDE

But when I compile with:
make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=~/Android/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/bin OPT=-dFPC_ARMEL INSTALL_PREFIX=~/Android/fpcsrc/Makefile

I get the following compiler errors:
compproc.inc(64,91) Error: Fields cannot appear after a method or property definition, start a new visibility section first
compproc.inc(65,102) Error: Fields cannot appear after a method or property definition, start a new visibility section first
compproc.inc(66,94) Error: Fields cannot appear after a method or property definition, start a new visibility section first
compproc.inc(320,114) Error: Fields cannot appear after a method or property definition, start a new visibility section first
compproc.inc(320,136) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted


I'm new to Lazarus, any help would be appreciated.

Cyrax

  • Sr. Member
  • ****
  • Posts: 495
Which version of FPC you are using?

BriggsBFC

  • Newbie
  • Posts: 2
I downloaded the latest version of FPC with:
svn co http://svn.freepascal.org/svn/fpc/trunk/ ~/Android/fpcsrc

It would appear I have Version 3.1.1

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5338
From the little info that you give, an educated guess would be that you run a separate install makefile step with the globally installed compiler, while you probably should pass the compiler generated in some previous build step.  (PP=c:\fpc\newlygenerated\compiler\ppccrossarmhf or something)

Or it tries to trigger an install without a build (all) step, and then it should be the release compiler (globally installed or manually passed like above)
« Last Edit: January 10, 2017, 11:47:20 am by marcov »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus