[fpc-pascal] compiler asks for variants support

Marc Santhoff M.Santhoff at t-online.de
Sun Feb 17 17:19:21 CET 2008


Hi,

why does this program:


program novariant;
uses
	sysutils;
var
	a, b: double;
begin
	b := 0.4237;
	a := b**5;
	writeln(floattostr(a));
end.


when running give that error message:

$ ./novariant

Program needs probably the variants unit.
Include the variants unit in your uses statements
as one of the first units.


An unhandled exception occurred at $08052E37 :
EVariantError : Invalid variant operation
  $08052E37


TIA,
Marc





More information about the fpc-pascal mailing list