Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPC Linux Ubuntu 12.04) will not compile #7

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Closed

FPC Linux Ubuntu 12.04) will not compile #7

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant