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 9084589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:02:13+00:00 2026-06-16T21:02:13+00:00

I am not a very expert Fortran programmer, but now that I have written

  • 0

I am not a very expert Fortran programmer, but now that I have written many subroutines (in Fortran 90), I have to put them in Modules (employed by “use” statement in other subroutines and program) to avoid writing the interfaces. I have to use these modules with old code written in F77.
I don’t want the compiler to compile these modules again and again. So I created a static library from the “.o” files after compiling these modules:

ar rc libmymath.a module1.o module2.o module3.o

However I still need to keep the “.mod” files of these modules to be able to “use” them in my code.

My question: is it possible to pack these “.mod” files in the static library archive “.a” (as we did with .o files), so that everything is encapsulated in the single file static library?

P.S: by anywhere I mean across my systems, all of them use gfortran 64 bit.

  • 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-16T21:02:14+00:00Added an answer on June 16, 2026 at 9:02 pm

    No, it is not possible.

    In an analogue to C/C++, a .mod file is like a header file. It describes the contents of the module and the USE <module> is similar to the #include <header>.

    These mod files are compiler (and often even version) specific and are required because modules name-mangle the functions and so there needs to be a lookup table for the resulting function names.

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

Sidebar

Related Questions

I'm not very expert on how processors work, but one might imagine that it
I'm not very expert in using javascript and jquery but I'm working with them
I'm not very expert with Perl, so I preferred to ask you. I have
I am not very much expert in gdb and mdb but What i know
I have a very peculiar requirement and I am not an HTML expert. I
I'm not the very best expert, but I can do a decent job good
Not very sure if this is the right way of asking, but I was
I'm not very experienced in C#, done some small stuff with it, but it's
I'm not very used to programming with flags, but I think I just found
OK I'm hoping I'm missing something basic here - I am not very expert

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.