Skip to content

Instantly share code, notes, and snippets.

@bioinfornatics
Created February 23, 2012 23:46
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 bioinfornatics/1895822 to your computer and use it in GitHub Desktop.
Save bioinfornatics/1895822 to your computer and use it in GitHub Desktop.
$ ldc2 -relocation-model=pic -shared -soname test.so sharedLib.d
$ cat sharedLib.d
import std.string;
import std.stdio;
void func1(){}
int func2(){ return 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment