Kinda self explanatory…
I get a variety of errors when try to access 4.0 dlls in FSI. So rather than go through each one, I think the above question is the right one.
This is a repost more or less of my question here in F# on MAC OSX and Ubuntu I get an error running FSI in 4.0
Thanks
Gary
Edit I am trying to run the following in a demo on my MacBook with Mono 2.8 and fsharp. (The code was chosen by someone else)
open System.Numerics
open System
let maxIteration = 100
let modSquared (c : Complex) = c.Real * c.Real + c.Imaginary * c.Imaginary
type MandelbrotResult =
| DidNotEscape
| Escaped of int
let mandelbrot c =
let rec mandelbrotInner z iterations =
if(modSquared z >= 4.0)
then Escaped iterations
elif iterations = maxIteration
then DidNotEscape
else mandelbrotInner ((z * z) + c) (iterations + 1)
mandelbrotInner c 0
for y in [-1.0..0.1..1.0] do
for x in [-2.0..0.05..1.0] do
match mandelbrot (Complex(x, y)) with
| DidNotEscape -> Console.Write "#"
| Escaped _ -> Console.Write " "
Console.WriteLine ()
I downloaded the ZIP binaries and tried to run the 4.0 version on MacOS. Initially, I get the same error as you (could not locate
BigInteger). This can be fixed by adding the-Icommand line argument, but then I got another error and I’m not yet sure what to do about this one:EDIT Here is another (unsuccessful) attempt. This looks like a Mono bug, because the
UnsafeLoadFrommethod doesn’t seem to exist on Mono (runtime 4.0). At least, I cannot see it in the MonoDevelop IDE in C# projects (when I change runtime to 4.0)