Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

Trouble creating basic executables in both Xcode and Terminal?

markdavidson
Beginner
540 Views
Background - I have a new MACBOOK PRO and I am running Xcode 3.0 and I am using an evaluation copy of Intel Fortran.

I have followed the installations carefully but I am still having trouble producing working executables in either Xcode or Terminal.

I am using the following test program:

C test1.for
C test
C
C Created by Mark Davidson on 22/06/2008.
C Copyright 2008 __MyCompanyName__. All rights reserved.
C

PROGRAM test1
PRINT*, 'Helo World:'
END PROGRAM test1

In Xcode environment everything seems to work ok but I get the following warning (build results) on building the application:

Building target test of project test with configuration Release - (1 warning)
Checking Dependencies
warning: no rule to process file '$(PROJECT_DIR)/test1.for' of type sourcecode.fortran for architecture ppc
warning: no rule to process file '$(PROJECT_DIR)/test1.for' of type sourcecode.fortran for architecture ppc
Build succeeded (1 warning)

I have defined a rule instructing: Process Fortran source files using intel Fortran Compiler 10.1 (Preview).

In terminal there are no warnings at all and a filename.out file is produced where 'filename' is the filename that I specify as per the compile and link instructions. However, when running file nothing is returned to the terminal by way of output? I have also tried to write to a file, but no file is created?

I may be making a simple mistake as I am a new user of the intel compiler? Any comments would be much appreciated!
0 Kudos
1 Reply
Kevin_D_Intel
Employee
540 Views

Hi Mark,

Read this reply for information about how to address the ppc build warnings under Xcode. You simply need to remove the ppc from the Architectures setting in the Target info window.

It is not obvious what might be the cause for no output in the terminal window. What was the ifort command-line you used?

Let us know if this helps.

0 Kudos
Reply