|
From: Earnie B. <ea...@us...> - 2013-08-26 11:27:09
|
On Mon, Aug 26, 2013 at 6:21 AM, Samuel Halliday wrote: > > That is true, but don't you agree that it is unusual to use gfortran to link objects that are language independent? I much rather use the gcc front-end which is language agnostic. > That is not true. GCC is much language agnostic and is bent toward providing C. All of the frontends when used for compiling will try to determine the type of source being compiled and will, based on assumptions that may not be correct, pass the source to its compiler. GCC as a linker is C agnostic only. You must use the correct frontend so that the base libraries are passed in the correct order. Add a -v option to the command line to see what the different frontends do for each of the functions, compiler or linker. -- Earnie -- https://sites.google.com/site/earnieboyd |