I tried to compile this code using 

gdc -o dodawanie dodawanie.d

import std.stdio;
void main() {
  int a = 6, b = 7;
  writefln(a+b);         // wynik dodawania nie zostanie zapisany do zmiennej
                         // tylko od razu przekazany funkcji writefln
}

If i try run this program after compile 

dan...@dan900-desktop:~/Programowanie/D/Dodawanie$ ./dodawanie
Segmentation fault

How i can fix this problem?

Kubuntu 9.04 Linux 86-64 2.6.28-11-generic

Reply via email to