gtk_init breaks fortran data operation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.
I'm writing an application, that combines GTK calls (from C source) and fortran subroutine.
Behavior of subroutine depends on when it gets called - before gtk_init or after.
If it is called before gtk_init, subroutine works OK. If subroutine is called after gtk_init, fortran behaves very strange: it reads floating point value from file, but it gets onlyÂinteger part of it. In first, correct case, it reads normal floating point value.

Code
>printf("This call is correct:\n");
>main_in_ ();
>gtk_init (&args_length1, &args);
>printf("And this is already broken:\n");
>main_in_ ();
Gives following output
>This call is correct:
> dt ==ÂÂ 7.30000019E-11
>And this is already broken:
> dt ==ÂÂÂ 7.0000000

Why does gtk_init affect fortran way of reading value? How it can be fixed?
Small testcase attached.

Attachment: gtk-fortran.tar.gz
Description: GNU Zip compressed data

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux