Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMPLETE list of gfortran command line options?

Status
Not open for further replies.

GerritGroot

Technical User
Nov 3, 2006
291
ES
Hi,

Does anyone know where I can find a COMPLETE list of the gfortran command line (flag) options?

At I can't find "-shared" for example.

Is there a COMPLETE list of these flag options with explanations somewhere available?

Thanks,

Gerrit
 
I've found a good deal, if not all, of the options (including -shared) at
See p. 143 as printed on the PDF for the -shared option.

Hope that helps!

--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
 
For gfortran flags, type

gfortran --help

For linking/library flags, type

ld --help

-shared is passed to ld to create shared library. Most of the stuff that gfortran doesn't understand, it passes to ld.
 
Thanks, xwb. That's a useful trick to know!

--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
 
Thanks both!!

I understand that ld is a separate executable that comes with gfortran, right?

Eehm, what's it used for?

(Sorry for my ignorance :) )
 
gfortran is the compiler, ar and ld are the linkers (or linkage editors or consolidators depending on which operating system you're used to). ar and ld can also be used to make libraries.

If you wish to check dependencies, use ldd on your executable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top