FPC Linux Ubuntu 12.04) will not compile
GoogleCodeExporter opened this issue · comments
fpc "uSMBIOS.pas" (in directory: /home/vms/usmbios)
Free Pascal Compiler version 2.6.0 [2012/08/24] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling uSMBIOS.pas
uSMBIOS.pas(628,3) Error: Identifier not found "class"
uSMBIOS.pas(628,3) Error: Error in type definition
uSMBIOS.pas(628,3) Fatal: Syntax error, ";" expected but "identifier PUBLIC"
found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not
specify a source file to be compiled)
Compilation failed.
Original issue reported on code.google.com by vbm.mcc...@gmail.com
on 10 Mar 2014 at 2:36
Now compiles correctly under Linux Ubuntu 12.04 / FPC 2.6.0 with additional
directive shown below.
unit uSMBIOS;
interface
{$IFDEF FPC}
{$DEFINE NOGENERICS}
{$mode objfpc} // Added necessary to compile
{$ELSE}
{$IFDEF VER130}
{$DEFINE NOGENERICS}
{$ELSE}
{$IF CompilerVersion < 20} {$DEFINE NOGENERICS} {$IFEND}
{$ENDIF}
{$ENDIF}
Original comment by vbm.mcc...@gmail.com
on 12 Mar 2014 at 2:10
This issue was closed by revision r108.
Original comment by Rodrigo.Ruz.V@gmail.com
on 10 Apr 2014 at 1:37
- Changed state: Fixed