Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9133207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:26:48+00:00 2026-06-17T08:26:48+00:00

In Mac 10.8.2, use gfortran 4.7.2 to compile the following code: program test write(*,

  • 0

In Mac 10.8.2, use gfortran 4.7.2 to compile the following code:

program test
    write(*, *) isatty(6)
end program test

The program just not response and not return. Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:26:49+00:00Added an answer on June 17, 2026 at 8:26 am

    I’m not really sure why you get no output, it works fine for me with gfortran 4.7.2 on Linux. You could try whether writing your own interface to C’s isatty makes any difference:

    program test
      implicit none
    
      interface
        function my_isatty(fd) bind(C, name = 'isatty')
          use, intrinsic :: iso_c_binding, only: c_int
          integer(c_int)        :: my_isatty
          integer(c_int), value :: fd
        end function
      end interface
    
      ! Standard output should be at 1 in C:
      print*, my_isatty(1) 
    end program test
    

    I get the following output:

    $ ./a.out
        1
    $ ./a.out > b && cat b
        0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used to use a mac to write some C programs but it's not
It may help if you are on a Mac and use TextMate, though not
I use my mac at home and at work. And I use a program
I am using gfortran 4.7.1 on Mac OS X 10.8 to compile a simple
I just installed Postgres.app for mac to use with local rails development. Installation was
I use (Mac)Vim in my projects set to use 2 spaces for tabs and
I've recently purchased a Mac and use it primarily for C# development under VMWare
I would like to use network MAC addresses as a unique machine id for
I use terminal from Mac OS X Leopard to connect to remote Linux machines
When I use qtcreator on mac, it creates universal binaries. Does anyone know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.