Objectmix
Tags Register Mark Forums Read

Xcode, Intel ifort and opening files : Fortran

This is a discussion on Xcode, Intel ifort and opening files within the Fortran forums in Programming Languages category; Hi, I just started using the new Intel ifort compiler (vs. 10.1) on Mac OS X 10.4.11. It runs fine when used via the command line via "ifort test.for" and executing the executable. But I have trouble with the Xcode integration. A simple test compiled and run from within XCode via the shiny 'Build and Go' button works fine in that it writes '201' to the output. PROGRAM test INTEGER N PARAMETER (N=201) WRITE(*,*) N END PROGRAM test Trying to open a file and writing to it fails, however, in that nothing gets written into the file. PROGRAM test INTEGER ...


Object Mix > Programming Languages > Fortran > Xcode, Intel ifort and opening files

Reply

 

LinkBack Thread Tools
  #1  
Old 12-14-2007, 04:57 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Xcode, Intel ifort and opening files

Hi,

I just started using the new Intel ifort compiler (vs. 10.1) on Mac OS
X 10.4.11. It runs fine when used via the command line via "ifort
test.for" and executing the executable. But I have trouble with the
Xcode integration. A simple test compiled and run from within XCode via
the shiny 'Build and Go' button works fine in that it writes '201' to
the output.

PROGRAM test

INTEGER N
PARAMETER (N=201)

WRITE(*,*) N

END PROGRAM test

Trying to open a file and writing to it fails, however, in that nothing
gets written into the file.

PROGRAM test

INTEGER N
PARAMETER (N=201)

OPEN(1,FILE='data.txt', status='unknown')
Write(1,*) N

END PROGRAM test

If I run this via the command line '201' gets written into the file.
Either this is a bug or most likely I am missing something important in
how to set-up and use Xcode (I followed the instructions given by Intel
on this, but ...).

Any experience with Xcode and Intel compiler?
Thanks,

Markus

Reply With Quote
  #2  
Old 12-14-2007, 05:07 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Xcode, Intel ifort and opening files

> Any experience with Xcode and Intel compiler?

Nope, but I know a place where you might get more answers: the Apple
fortran-dev list (http://lists.apple.com/mailman/listinfo/fortran-dev).

--
FX
Reply With Quote
  #3  
Old 12-14-2007, 05:11 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Xcode, Intel ifort and opening files

> I just started using the new Intel ifort compiler (vs. 10.1) on Mac OS
> X 10.4.11. It runs fine when used via the command line via "ifort
> test.for" and executing the executable. But I have trouble with the
> Xcode integration.


Ah well, I have solved it. All that fancy Xcode functionality. Xcode
places the binary in a special 'Build' directory (or 'Debug' directory)
and there it places (and looks for) the file(s) it opens and writes
into.

Reply With Quote
  #4  
Old 12-14-2007, 05:54 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Xcode, Intel ifort and opening files

On Dec 14, 4:57 pm, Markus S <youcont...@hispeed.ch> wrote:
> Hi,
>
> I just started using the new Intel ifort compiler (vs. 10.1) on Mac OS
> X 10.4.11.


I'm glad to read that you figured out the problem. Other resources
for you are Intel's user forum for Fortran on MacOS at http://softwareforums.intel.com/
and Intel Premier Support (http://www.intel.com/support/
performancetools/fortran/)

Steve Lionel
Developer Products Division
Intel Corporation
Reply With Quote
  #5  
Old 12-14-2007, 06:24 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Xcode, Intel ifort and opening files

On Fri, 14 Dec 2007 23:11:38 +0100, Markus S wrote:
>> I just started using the new Intel ifort compiler (vs. 10.1) on Mac OS
>> X 10.4.11. It runs fine when used via the command line via "ifort
>> test.for" and executing the executable. But I have trouble with the
>> Xcode integration.


> Ah well, I have solved it. All that fancy Xcode functionality. Xcode
> places the binary in a special 'Build' directory (or 'Debug' directory)
> and there it places (and looks for) the file(s) it opens and writes
> into.


If you select the binary in the Xcode project window, you can bring up the
context-sensitive menu (right click or control click) and select "Show in
Finder".


--
Dave Seaman
Oral Arguments in Mumia Abu-Jamal Case heard May 17
U.S. Court of Appeals, Third Circuit
<http://www.abu-jamal-news.com/>
Reply With Quote
Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
how to call C (non-intel C compiler) from ifort (intel fortran)? usenet Fortran 4 10-02-2007 07:11 PM
ifort 9.1 on 64-bit openSuSE 10.2 (?) usenet Fortran 0 03-27-2007 11:30 PM
Problems opening files after install on intel Mac usenet Adobe illustrator 2 12-11-2006 01:05 PM
Site files read as corrupted on new Intel iMac usenet Adobe Tools 0 11-15-2006 11:56 PM
Exporting Intel Indeo 5 files usenet Adobe Premiere 0 11-20-2003 02:28 PM


All times are GMT -5. The time now is 07:02 AM.