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

  • Home
  • SEARCH
  • 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 6855031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:42:24+00:00 2026-05-27T01:42:24+00:00

I am trying to compile the following software so that I can step through

  • 0

I am trying to compile the following software so that I can step through and debug it. I am only a novice programmer and I am trying to understand how this whole makefile business works with Fortran. I know that there is a ton of literature on makefiles but I just need to insert a simple debug flag and I think if someone provided me with the answer to this question that would be the best way for me to learn.

So the program I am trying to compile, TINKER, is actually made up of several packages, located at http://dasher.wustl.edu/tinkerwiki/index.php/Main_Page. I would like to compile and debug JUST ONE specific executable, “analyze”. I contacted the developer and received the following reply but I am still stuck…

Since TINKER has lots of small source code files, what we do is
compile each of the small files to an object file using the “-c” flag.
Then we put all of these object code files (ie, the “.o” files) into
an object library. Finally, we link each of the TINKER top level
programs, such as “analyze”, against the object library. There is a
Makefile supplied with TINKER that does this. We also supply
individual scripts called “compile.make”, “library.make” and
“link.make” for various CPU/compiler combinations that can be run in
order to perform the steps I describe above. To build a “debuggable”
executable, you just need to include the appropriate debug flags
(usually “-g”) as part of the compile and link stages.

I am currently running OSX 10.6.8. If someone could show me which folders I cd into, what commands I enter that would be so great!

Thanks!

My follow up question (once I can figure out how to answer the above via command line will concern how to import the same procedure but using the Photran IDE – http://wiki.eclipse.org/PTP/photran/documentation/photran5#Starting_a_Project_with_a_Hand-Written_Makefile)

  • 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-05-27T01:42:25+00:00Added an answer on May 27, 2026 at 1:42 am

    The directions are at http://dasher.wustl.edu/tinkerwiki/index.php/Main_Page#Installing_TINKER_on_your_Computer

    Maybe out of date? g77 is obsolete — it would be better to use gfortran.

    The key steps: “The first step in building TINKER using the script files is to run the appropriate compile.make script for your operating system and compiler version. Next you must use a library.make script to create an archive of object code modules. Finally, run a link.make script to produce the complete set of TINKER executables. The executables can be renamed and moved to wherever you like by editing and running the ‘‘rename’’ script.”

    So cd to the directory for the Mac — based on “we also provide machine-specific directories with three separate shell scripts to compile the source, build an object library, and link binary executables.” Then run the command scripts. Probably ./compile.make. Look around for the directories … you can probably figure it out from the names. Or search for the file “compile.make”.

    Or find someone local to you who knows more about programming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to compile the following code, I am getting a warning that line
I am trying to compile a small .c file that has the following includes:
I am trying to compile the following code: public static void RequireOrPermanentRedirect<T>(this System.Web.UI.Page page,
I'm trying to compile some software I've been writing in Linux that uses some
I'm trying to compile the following code: class MyClass { def foo(): this.type =
I am trying to compile the following code: private String dataToString(){ Map data =
I'm trying to compile the following simple DL library example code from Program-Library-HOWTO with
I am trying to compile the following code and i am getting the error:
I'm trying to compile some code which contains the following declaration, because I would
I'm trying to compile a third-party library, but g++ is complaining about the following

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.