Campy icon indicating copy to clipboard operation
Campy copied to clipboard

Hello world not working

Open ahvahsky2008 opened this issue 6 years ago • 0 comments

When run code from readme i see error

System.DllNotFoundException: Unable to load DLL 'campy-runtime-wrapper' or one of its dependencies: Не найден указанный модуль. (Exception from HRESULT: 0x8007007E)
   at Campy.Meta.RUNTIME.InitTheBcl(IntPtr a1, Int64 a2, Int64 a3, Int32 a4)
   at Campy.Compiler.COMPILER.InitBCL() in C:\Users\Kenne\Documents\Campy2\Campy.Compiler\compiler.cs:line 1680
   at Campy.Compiler.COMPILER..ctor() in C:\Users\Kenne\Documents\Campy2\Campy.Compiler\compiler.cs:line 1181
   at Campy.Compiler.COMPILER.get_Singleton() in C:\Users\Kenne\Documents\Campy2\Campy.Compiler\compiler.cs:line 1071
   at Campy.Parallel..ctor() in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 20
   at Campy.Parallel.get_Singleton() in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 30
   at Campy.Parallel.<>c__DisplayClass12_1.<For>b__0() in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 109
   at Campy.Utils.TimePhase.Time(String phase_name, Action action) in C:\Users\Kenne\Documents\Campy2\Campy.Utils\TimePhase.cs:line 16
   at Campy.Parallel.For(Int32 number_of_threads, SimpleKernel simpleKernel) in C:\Users\Kenne\Documents\Campy2\Campy\Parallel.cs:line 107
 int n = 4;
            int[] x = new int[n];
            Campy.Parallel.For(n, i => x[i] = i);
            for (int i = 0; i < n; ++i)
                System.Console.WriteLine(x[i]);

            Console.WriteLine("Hello World!");

ahvahsky2008 avatar Jul 13 '19 14:07 ahvahsky2008