Skip to content

Instantly share code, notes, and snippets.

@colomon
Created January 27, 2012 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colomon/1689126 to your computer and use it in GitHub Desktop.
Save colomon/1689126 to your computer and use it in GitHub Desktop.
Wynne:p5test colomon$ perl p5test.pl
# darwin
ok 1 - We have a working C compiler.
ok 2 - We can embed p5.
ok 3 - We can run programs under mono
Unhandled Exception: System.DllNotFoundException: /Users/colomon/tools/niecza/p5test/test4lib.dylib
at (wrapper managed-to-native) Test4:RunTest ()
at Test4.Main () [0x00000] in <filename unknown>:0
# resulting library: test4lib.dylib: Mach-O 64-bit dynamically linked shared library x86_64
not ok 4 - We call C code from mono using /usr/bin/gcc-4.2 -shared
# Failed test 'We call C code from mono using /usr/bin/gcc-4.2 -shared '
# at p5test.pl line 45.
# got: ''
# expected: 'OK 4
# '
# resulting library: test4lib.dylib: Mach-O dynamically linked shared library i386
ok 5 - We call C code from mono using /usr/bin/gcc-4.2 -m32 -shared
# resulting library: test4lib.dylib: Mach-O dynamically linked shared library i386
ok 6 - We call C code from mono using /usr/bin/gcc-4.2 -m32 -shared -fPIC
Unhandled Exception: System.DllNotFoundException: /Users/colomon/tools/niecza/p5test/test4lib.dylib
at (wrapper managed-to-native) Test4:RunTest ()
at Test4.Main () [0x00000] in <filename unknown>:0
# resulting library: test4lib.dylib: Mach-O 64-bit dynamically linked shared library x86_64
not ok 7 - We call C code from mono using gcc -dynamiclib -current_version 1.0
# Failed test 'We call C code from mono using gcc -dynamiclib -current_version 1.0'
# at p5test.pl line 45.
# got: ''
# expected: 'OK 4
# '
Unhandled Exception: System.DllNotFoundException: /Users/colomon/tools/niecza/p5test/test5lib.dylib
at (wrapper managed-to-native) Test4:RunTest ()
at Test4.Main () [0x00000] in <filename unknown>:0
not ok 8 - We call P5 code from mono
# Failed test 'We call P5 code from mono'
# at p5test.pl line 59.
# got: ''
# expected: 'OK 5
# '
1..8
# Looks like you failed 3 tests of 8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment