Jump to content

how to set libs variable?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Milenko76

Milenko76

    Newbie

  • Members
  • Pip
  • 2 posts
I want to compile fortran code,but I have problems.
TARGETS= clean Occam2D
OBJSOC= OccamModules.f90 MT2DModules.f90 Occam.f90 MT2D.f90
all: $(TARGETS)
clean:
rm -f *.o *~ core *.mod
rm -f Occam2D
Occam2D:$(OBJSOC)
$(FC90) $(FCFLAGS) -o $@ $(OBJSOC) $(LIBS)
# General compile rules
.SUFFIXES: .f90 .o
.f90.o:
$(FC90) $(FCFLAGS) -c -o $@ $<
I have tried like this:
LIBS =/opt/intel/composerxe-2011.1.107/mkl/lib/ia32
ipo: warning #11010: file format not recognized for /opt/intel/composerxe-2011.1.107/mkl/lib/ia32
ld: /opt/intel/composerxe-2011.1.107/mkl/lib/ia32: No such file: File format not recognized
But it does not work.

Edited by Roger, 14 November 2011 - 10:08 AM.
added quote tags


#2
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
Could you provide some clarification? What error message did you get? Are the last two lines the error messages you got or are they part of the code? Is LIBS the file you're trying to compile? I'm not familiar with the Fortran compiler you're using or its syntax, so could you specify what the options mean?
Programming is a journey, not a destination.

#3
Milenko76

Milenko76

    Newbie

  • Members
  • Pip
  • 2 posts
Libs are Fortran MKL libraries.Yes,two lines are error messages.I need to set up environmental variable.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users