[ghemical-devel] ghemical 2.12 on opensuse 11.0
Tommi Hassinen
Tommi.Hassinen at uku.fi
Wed Jul 30 02:49:37 EDT 2008
Hello,
yes this is true ; the fix is missing from ghemical-2.1x source tree however.
So Michael, please add the following to the beginning of src/main.cpp :
// define MAIN__ in case mopac7 uses f2c
extern "C" { int MAIN__ (void) {return 0;} }
Thanks for the notice Jean!
Best regards,
Tommi
________________________________________
From: Jean Bréfort [jean.brefort at normalesup.org]
Sent: Tuesday, July 29, 2008 1:31 PM
To: Tommi Hassinen
Cc: Michael Galloway; Michael Galloway; ghemical-devel at bioinformatics.org
Subject: Re: [ghemical-devel] ghemical 2.12 on opensuse 11.0
Le mardi 29 juillet 2008 à 09:50 +0300, Tommi Hassinen a écrit :
> /usr/lib/libglut.so -lf2c
> /usr/lib/gcc/i586-suse-linux/4.3/../../../libf2c.so: undefined reference to `MAIN__'
>
>
> Ooops!! Sorry, it seems that you must have -lg2c instead of -lf2c ; so you have to link with libg2c and not with libf2c.
>
Hmm, I thought I fixed that some times ago. The issue is that libg2c is
deprecated AFAIK (removed from gcc >= 4.0.0), and so we must use libf2c.
Best regards,
Jean
More information about the ghemical-devel
mailing list