Don;t have a clue what you are tryuing to do but
if you want to sue the low level autodif stuff you need to
know what you are doing
int main()
{
// you need something like
gradient structure gs(100000);
dvariable x; // segfaults before this completes -- not any more
return 0;
}