Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/MojoLlama/blob/main/src/mojollama/mojo_engine/mojo_dl_test.mojo # MojoLlama Archived Mojo/MAX quantizer and serving research repository (read-only history) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `MojoLlama / src / mojollama / mojo_engine / mojo_dl_test.mojo` 14 lines ยท 364 bytes Raw Blame History 1 from std.prelude import * 2 3 @extern("dlopen") 4 fn dlopen(path: String, flags: Int32) -> Int64: ... 5 6 @extern("dlerror") 7 fn dlerror() -> String: ... 8 9 fn main(): 10 var handle = dlopen("/onedev-workspace/work/src/mojollama/mojo_engine/libbridge.so", 2) 11 print("dlopen handle: ", handle) 12 if handle == 0: 13 var err = dlerror() 14 print("Error: ", err)