Re: Stand Alone Executable for GFortran
James McGroder <jimmc1-/[email protected]> Mon, 29 Jun 2020 20:09:11 -0400
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <[email protected]> |
On 6/29/20 1:44 PM, Pete Linden wrote:
>
> People,
>
>
>
> I have two installs of Mingw and GFortran. On the 1^st one I can make
> a Stand Alone Executable using GFortran. On the 2^nd one, I can not
> make a Stand Alone Executable for GFortran.
>
>
>
> Did I make an install error?
>
Hard to say... Please share gfortran & shell command line(s) for
Stand-alone and and
*NON* Stand-alone examples.
A Stand-Alone example could be something like this:
jim@OptiPlex-780 ~/src $gfortran hello.f
*** without -o option, a.out is default output
jim@OptiPlex-780 ~/src $./a.out
Hello World
On Non stand-alone, I'm inferring you mean something with subroutines...
So how are they linked?
Example:
program abc123.f calls jkl123 and xyz123. They are compiled separately:
gfortran -c -o ~/obj/acb123.o abc123.f (then jkl123.f and xyz123.f)
Then build final executable:
gfortran -o ./abc123 ~/obj/{abc123,jkl123,xyz123}.o
Or are you working libraries?
>
>
>
> Thanks,
>
>
>
> *Peter N. Linden, P.E.*
>
> *Linden Professional Services, Inc.*
>
> *9103 Brahms Lane*
>
> *Houston, Texas 77040*
>
> *Direct – 713-937-7875*
>
> *Cell – 713-253-3216*
>
>
>
>
> _______________________________________________
> MinGW-Users mailing list
> [email protected]
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.osdn.me/mailman/listinfo/mingw-users
> Also: mailto:[email protected]?subject=unsubscribe
--
Regards, Jim. Public key available from keys.gnupg.net
Key fingerprint: C3E0 D84F 927B 668C 3840 5E2A C39B E6EF 8115 0744
_______________________________________________
MinGW-Users mailing list
[email protected]
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAEBCAAdFiEEw+DYT5J7Zow4QF4qw5vm74EVB0QFAl76gqcACgkQw5vm74EV B0QM4gwAxN2WU0iINIONjGfJ1/wYfH4X/Q+FNFJj4uKf1Hjs0s+h4bPnUQmwpAqO Dafu8SmJ1LpEdR+H/Bj6az/UCQqgPuD7wa15CECp1UcWajYZevYT0Zh3QnwHGof1 elm7vMg2V3ihrzJkKbRJ1j6IkUjJd7RJYcW7iOI27mm3ElEfmPla1jZL/Fw7iW4+ P8Hqp7ZomhOjnfSFjb5mOKENf/Z2MyKapr+Cg20WXcKO9DysH55gN/6ixfH70ez7 2MT4U38xWKnYexwbk1aO+gqJamGqc3G3dQI8O5IcCcw9hX0OFNwfWLBweLdK3ztT pbg9L5WkO+yiQGPQ98NtuJPWP6Bd4VXBXQkSODqnKq0mQyxHKKKxky/o532KUQ7n +NrGfFFaaZXe51F+Nr8o5vqekRzUxTMmmY4r2u4JVi7zMO38TPXjmlMkFkJHPt5g iCzR5fWpTrQ9FEum+1UtwOOIapz7Fj14wqKtkQprODshNh7QZDPJdsvb+NsCBo04 hh9Fh5kI =gAFT -----END PGP SIGNATURE-----