Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Trouble creating basic executables in both Xcode and Terminal?

emaswfaol_com
Beginner
423 Views
Background - I am a new Mac Fortran user and I am running Xcode 3.12 with a newly purchased copy of Fortran 11. The following description from a previous user (Mark Davidson) is my exact problem with a different piece of test code. However, when I clicked to get the details from Kevin Davis (Intel) they were not there (he answered the original question). I did try to remove a PPC related line on the second line of the Target Info menu and replace it with Standard (32-bit Universal). This did not work. I am sure that I am still making a simple mistake. Any help is appreciated.

---------------------------------------

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
423 Views
You can try obtaining the Xcode Hello sample I provided under an earlier thread here.

The ppc is likely not an issue as was discussed in the earlier thread also.

As for terminal mode, can you verify with -V what compiler was used, and provide the ifort/link commands used?
0 Kudos
Reply