Created
February 23, 2012 23:39
-
-
Save SiegeLord/1895766 to your computer and use it in GitHub Desktop.
D shared libs from C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void test_func(); | |
int main() | |
{ | |
test_func(); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
void main() | |
{ | |
} | |
extern(C) void test_func() | |
{ | |
writeln("Hello from D"); | |
} |
Author
SiegeLord
commented
Feb 23, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment