Skip to content

Instantly share code, notes, and snippets.

@eholk
Created July 29, 2011 23:26
Show Gist options
  • Select an option

  • Save eholk/1114961 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/1114961 to your computer and use it in GitHub Desktop.
native "rust" mod rustrt {
type rust_chan;
type rust_port;
fn upcall_new_chan(po : *rust_port) -> *rust_chan;
fn upcall_del_chan(ch : *rust_chan);
fn upcall_new_port(unit_sz : uint) -> *rust_port;
fn upcall_del_port(po : *rust_port);
}
@eholk

eholk commented Jul 29, 2011

Copy link
Copy Markdown
Author

The error is...

compile_and_link: stage0/lib/libstd.dylib
Undefined symbols for architecture i386:
  "_upcall_del_chan46", referenced from:
      comm::rustrt      in libstd.dylib.o
      __ZN4comm5_chanE98 in libstd.dylib.o
  "_upcall_del_port48", referenced from:
      __ZN4comm6rustrtE47 in libstd.dylib.o
      __ZN4comm5_portE99 in libstd.dylib.o
ld: symbol(s) not found for architecture i386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment