Skip to content

Instantly share code, notes, and snippets.

View guolas's full-sized avatar

Juan José García Fernández guolas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am guolas on github.
  • I am guolas (https://keybase.io/guolas) on keybase.
  • I have a public key whose fingerprint is A972 F57C 1F62 5A93 A6C3 804C 25C2 F74D 2040 FF85

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am guolas on github.
  • I am guolas (https://keybase.io/guolas) on keybase.
  • I have a public key whose fingerprint is 789F 96D6 99DF 364C 372F DF9D B3C0 E2F8 78C0 11CA

To claim this, I am signing this object:

@guolas
guolas / log
Created October 30, 2013 14:29
Error building Julia
LINK usr/lib/libjulia.dylib
Undefined symbols for architecture x86_64:
"llvm::TargetRegistry::lookupTarget(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)", referenced from:
_jl_dump_function_asm in codegen.o
"std::string::find_last_not_of(char, unsigned long) const", referenced from:
llvm::SMDiagnostic::print(char const*, llvm::raw_ostream&, bool) const in libLLVMSupport.a(SourceMgr.o)
"std::string::copy(char*, unsigned long, unsigned long) const", referenced from:
llvm::sys::Path::makeUnique(bool, std::string*) in libLLVMSupport.a(Path.o)
"std::string::find(char const*, unsigned long, unsigned long) const", referenced from:
llvm::TernOpInit::Fold(llvm::Record*, llvm::MultiClass*) const in libLLVMTableGen.a(Record.o)
@guolas
guolas / ccall_test.jl
Created August 8, 2013 21:29
ccall problem recognizing tuple types
f(x) = typeof(x)==ASCIIString?Ptr{Uint8}:typeof(x)
args = ("%.1f\n", 2.3)
args_type = map(f, args)
return_value = ccall( (:printf, "libc"), Int32, (Ptr{Uint8}, Float64), args[1], args[2])
println(isa(args_type, typeof((Ptr{Uint8}, Float64))))
return_value = ccall( (:printf, "libc"), Int32, args_type, args[1], args[2])