Skip to content

Instantly share code, notes, and snippets.

@bioinfornatics
bioinfornatics / gist:1941241
Created February 29, 2012 14:36
bed reader
/**
* The module csv is a set of function to parse many format using a delimitter as csv file
* Supported format:
* - .mat matrix file
* - .bed UCSC file
* For parse a .csv file use std.csv
*/
module dscience.parser.csv;
import std.conv : to;
$ ldc2 -shared test.d -soname test.so -g
$ gcc test.c -L. -ltest -otest -g
$ LD_LIBRARY_PATH=`pwd`gdb ./test
./test: error while loading shared libraries: test.so: cannot open shared object file: No such file or directory
$ LD_LIBRARY_PATH=`pwd` gdb ./test
(gdb) b 5
$ 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; }