ifort link under cygwin

ifort link under cygwin

Hi,
I am trying compile and link my FORTRAN codeunder cygwin environment.
My code needs to link alibrary libHYPRE.lib,whichwas generated by gcc
under cygwin.
The compile was OK, but the link had error as follows. Can anyone help
me? thanks in advance.

David

ifort module11.obj module12.obj module1.obj ads0.obj gmsini.obj vis0.obj rperm0.obj outdt3.obj alloc1.obj alloc2.obj alloc3.obj flux.obj mayer.obj hystmw.obj hyswwg.obj hyswws.obj resread.obj welread.obj cubic2.obj dpread.obj adoil.obj init.obj phabio.obj thirdd.obj aamain.obj densty.obj inst.obj odistm1.obj rstart.obj trapno.obj abnc.obj eacnms.obj ioncng.obj odiswo.obj single.obj try.obj adsorb.obj engbal.obj isamax.obj omofr.obj slv2eq.obj twoalc.obj alcptn.obj f.obj isrcheq.obj outdt1.obj solb.obj utfoam.obj asign1.obj file1.obj isrcheqi.obj outdt2.obj solmat.obj vgamma.obj asign2.obj file2.obj isrchfge.obj phasc.obj solve.obj viscos.obj bioread.obj file3.obj jacup.obj phcomp.obj sumtab.obj well.obj biosolve.obj g.obj jcg.obj printi.obj tcap.obj wellck.obj bundry.obj gauss.obj lauwer.obj printo.obj tdiffu.obj wellix.obj capnum.obj gel.obj manipl.obj prints.obj tielin.obj wheneq.obj coneq.obj georead.obj metric.obj qrate.obj time0.obj wmeacn.obj csecal.obj grdfac.obj moppst.obj radius.obj totals.obj cseod.obj noneq.obj reactr.obj tran1.obj matrixconv.obj cubic.obj ilsum.obj noneqk.obj renam1.obj trans.obj cvmgt.obj inname.obj nslug.obj renam2.obj trap.obj ddriv2.obj inout.obj odistm.obj revise.obj trapg.obj utchem_hypre.obj hypresolver.obj ./lib/libHYPRE.lib utchem93
Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20090624 Package ID: w_cprof_p_11.1.038
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
ifort: command line warning #10161: unrecognized source type 'utchem93'; object file assumed

link: unknown option -- o
Try `link --help' for more information.
make: *** [utchem93] Error 1

4 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Hi, David,

You can ask your questions to our Fortran Compiler experts at http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/

-Tao

You have the Cygwin file-link creation program link.exe earlier in your PATH than the MS linker, which is also called link.exe! The IFort compiler driver is calling the Cygwin link.exe with arguments for the MS linker.

In the batch file that sets up your environment for compiling with IFort, ifortvars.bat, find the line that sets the PATH environment variable. Make sure that the MSVS Tools directory appears before the cygwin bin directory in PATH.

Accedere per lasciare un commento.