[Wien] Fortran compiling errors to MAIN program
Laurence Marks
laurence.marks at gmail.com
Tue May 14 13:15:52 CEST 2019
I suspect that you have incorrectly typed in the compilation options,
specification of compiler, are somehow linking with c (not ifort) or have a
broken make (gmake). The -c option is embedded in the Makefile so you
should not include it.
There is no "main.c". Did you just download the directory and do an update,
or created a fresh directory?
On Tue, May 14, 2019 at 11:36 AM Luc Fruchter <luc.fruchter at u-psud.fr>
wrote:
> Hi,
>
>
> I tried to compile the new version 18.2 to update my old 17 one, and I
> encountered two errors (I use latest Intel fortran compiler from
> Parallel Studio):
>
> - In SRC_mixer: for main.c: undefined reference to 'MAIN__'
>
> and then multiple 'undefined reference'
>
> - In SRC_nmr: the same errors.
>
>
> Intel indicates that:
>
> "Resolution
>
> If you are compiling sources separately to be linked later, add the -c
> option to the ifort command to tell the ifort driver not to invoke the
> linker.
>
> If you are building a mixed-language application whose main program is
> not written in Fortran, use the
>
> -nofor-main "
>
>
> (
> https://urldefense.proofpoint.com/v2/url?u=https-3A__software.intel.com_en-2Dus_articles_error-2Dundefined-2Dreference-2Dto-2Dmain&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=gfGravY_pBwP_2uOrm9-7LQiphy0zyJgb64wrqdrsMc&s=4jn2hxBNeX1bI-VrScvn3NPyrmGAkFWxcWxkqr7MWQs&e=
> )
>
>
> This problem did not happen during the compilation of the older
> versions. Should one now use these options ?
>
>
> Thanks
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=gfGravY_pBwP_2uOrm9-7LQiphy0zyJgb64wrqdrsMc&s=4lg4OgdUOpSXMNWzOB0Z9k9nF5ATWyQo10bFxTmU3vA&e=
> SEARCH the MAILING-LIST at:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=gfGravY_pBwP_2uOrm9-7LQiphy0zyJgb64wrqdrsMc&s=p1EhA020emPDfi-c58fvnT93GYiCdZPTKI6wdt54Z6Y&e=
>
--
Professor Laurence Marks
Department of Materials Science and Engineering
Northwestern University
www.numis.northwestern.edu
Corrosion in 4D: www.numis.northwestern.edu/MURI
Co-Editor, Acta Cryst A
"Research is to see what everybody else has seen, and to think what nobody
else has thought"
Albert Szent-Gyorgi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20190514/e23b8934/attachment.html>
More information about the Wien
mailing list