Intel® Fortran Studio XE

OS X 10.9 Xcode 5 error ld: library not found for -lcrt1.10.6.o

Environment:  OS X 10.9 (Mavericks) and Xcode 5.0

Command line compilations/links fail with "ld: library not found for -lcrt1.10.6.o"

Affected compiler:  Intel Composer XE 2013 Update 1

Root cause:  Xcode 5.0 installation does not install all command line tools (include files, libraries, SDKs) need for the compiler to link user applications. 

Error in the open statement

        do m = 0,15,1
                write(fn,*) m,'.txt'
                print *,fn
                open(unit=m,status='unknown',action='read',file=fn)
                print *,'opened file ',fn
                do k = 1,6
                        read(m,*),array(k,m,:)
                        print *,array(k,m,:)
                enddo
        enddo

 

I have the above code to read in an array from multiple files. It successfully reads from the first file but after that it shows error. I am posting the output.

Preprocessor conditional compilation

Hello all, I have a general question regarding Fortran syntax (not this forum?).  I have a series of include files that set up memory structures, and those include files may also chain-include other files.....in this case, some "parameter definition" files.  For example:

INCLUDE 'MEMORY_PARMS.TEXT'

STRUCTURE    /SOME_ARRAY/
    INTEGER*4    ID
    REAL*4    SOMEVARX(COUNT)
    REAL*4    SOMEVARY(COUNT)
END STRUCTURE

...and 'MEMORY_PARMS.TEXT' contains the following:

Compiling and Linking Fortran Code with external modules and libraries

Dear all,

I am trying to create a fortran program. I have already done this in Windows and using Visual Studio.

In linux I am using ifort (ifort (IFORT) 14.0.2 20140120).

I am very new to this. I appreciate your help. I will explain the procedure I am taking below.

I have my source code ( File1.f90, File2.f90, File3.f90 and main.f90) and then I have a folder full of external libraries (*.a and *.mod )

I have not written these libraries nor I have any idea which compiler was used to compile and create those libraries.

Iscriversi a Intel® Fortran Studio XE