Re: gtkmm and fortran



I did not understand your answer, Paul.
I think that lg2c has been replaced by lgfortran now that gfortran has replaced g77.

By the way, thank you, John, for your results on ubuntu. Now I know it works on gentoo and ubuntu. Why does this code give me a "internal error: printf is broken" on my debian computer !!?!! If I remove the Gtk::Main line of the c++ code, it works...

If somebody here uses a debian (testing) an has a few seconds to compile and run the problematic code I gave you, i thank him in advance. I really would like to know if it is a debian bug or a misconfiguration from me.

Eric





Paul Davis wrote:
Eric,

I should've read more carefully.

Try this example.  Basically, change -lgfortran to -lg2c

And I made it a SConstruct instead of a makefile. Because I hate make.
(Read: I couldn't figure out the make syntax, therefore I used what I
like better)

Cheers,
Paul

On 1/19/07, John Spray <jcspray icculus org> wrote:
On Fri, 2007-01-19 at 18:39 +0100, eric jrdn2 wrote:
> Hi all,
> I need to make a GUI to fortran subroutines (calculation purposes. Yes,
> fortran).
> The fact is that gfortran seem to have some problems with gtkmm. On my
> gentoo with gtkmm 2.8.3, it works fine. I tried it on debian testing and
> it gives a "printf is broken" if the line "Gtk::Main kit(argc, argv);"
> is in main(). I opened a bug on debian but does not know really if it is
> a gfortran bug.
>
> Does anyone knows what's wrong and am I the only one who gets this error?

The code you've attached compiles and runs fine on my Ubuntu 6.10
system.  This is with gtkmm 2.10.2-0ubuntu1 and gfortran 4.1.1-6ubuntu3.

John

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

------------------------------------------------------------------------

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


	

	
		
___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com



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