- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I am not a well accomplished fortran programmer, so I am learning on the fly.
Actual I am trying to compile some fortran90 code. You may find the code here:
http://www.brc.tamus.edu/swat/downloads/pc/swat2009/dev_code_rev_436.zip
But I always get error messages:
Error 1 error LNK2005: _READMGT already defined in readmgt.obj readmgtsave.obj
Error 2 fatal error LNK1169: one or more multiply defined symbols found Debug\\swat_h.exe
I am using Microsoft Visual Studio 9.0 and Intel Visual Fortran Compiler, Version 11.1.065. on a 64bit Windows7 system.
The error messages also appear if i start the compiler from the command line.
Actual I am trying to compile some fortran90 code. You may find the code here:
http://www.brc.tamus.edu/swat/downloads/pc/swat2009/dev_code_rev_436.zip
But I always get error messages:
Error 1 error LNK2005: _READMGT already defined in readmgt.obj readmgtsave.obj
Error 2 fatal error LNK1169: one or more multiply defined symbols found Debug\\swat_h.exe
I am using Microsoft Visual Studio 9.0 and Intel Visual Fortran Compiler, Version 11.1.065. on a 64bit Windows7 system.
The error messages also appear if i start the compiler from the command line.
- Balises:
- Intel® Fortran Compiler
1 Solution
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
(1) Thelist of files is incomplete - there are lots of "use parm" statements but no parm.f (or a file with module parm defined)
(2) The subroutine READMGT occurs twice - once in readmgt.f and again in readmgtsave.f so it appearsyour project has *both* of these files in its list of source fileshence you will get the "already defined ..." message.
Les
(2) The subroutine READMGT occurs twice - once in readmgt.f and again in readmgtsave.f so it appearsyour project has *both* of these files in its list of source fileshence you will get the "already defined ..." message.
Les
Lien copié
2 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
(1) Thelist of files is incomplete - there are lots of "use parm" statements but no parm.f (or a file with module parm defined)
(2) The subroutine READMGT occurs twice - once in readmgt.f and again in readmgtsave.f so it appearsyour project has *both* of these files in its list of source fileshence you will get the "already defined ..." message.
Les
(2) The subroutine READMGT occurs twice - once in readmgt.f and again in readmgtsave.f so it appearsyour project has *both* of these files in its list of source fileshence you will get the "already defined ..." message.
Les
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Thanks for your help.
(1) I added the parm.mod file from a previous version.
(2) I removed readmgtsave.f
After that I was able to compile the source code without an error.
(1) I added the parm.mod file from a previous version.
(2) I removed readmgtsave.f
After that I was able to compile the source code without an error.

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable