05-15-2013
Hi.
OK, so the standard libraries are available and getting linked. That suggests that you are missing some local libraries.
When you look at the Makefile, and particularly the final link -- could be gfortran, gcc, or ld -- are there other libraries mentioned? ... cheers, drl
10 More Discussions You Might Find Interesting
1. AIX
hello aixperts,
I really need g77 on an aix 5L 5.3 system as I do not have xlf right now, is there any way by which I can get it?
eagerly waiting for the reply,
MzZt. (1 Reply)
Discussion started by: mzzt
1 Replies
2. Red Hat
Hi all
In order to build a library the g77 fortran compiler is required.
I know that it is very old, but this is the requirement in order to compile this package and it seems not possible to move away from it.
The problem is that I really don't know where to get this old package!
I tried in... (0 Replies)
Discussion started by: manustone
0 Replies
3. Programming
Hi!
I have a program in fortran77. This program was compiled with pgf90, but now, I need compiled it with gfortran.
I show a bit of code.
program hello
PARAMETER(a=100)
integer a
write(*,*)'value ', a
end program hello
What's the problem?
Thanks (2 Replies)
Discussion started by: kekaes
2 Replies
4. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
5. Programming
Question 1:
I have a c++ project that I am trying to re-organize. I am trying to subdivide the src directory to move some src files that seldom are changed to a more out of the way location. The project is a c++ application with a fortran function called from the c.
The reorganization went... (9 Replies)
Discussion started by: LMHmedchem
9 Replies
6. Programming
Hi,
I am trying to run a simple f77 program on gfortran. Program is as follows.
program trial
implicit real*8 (a-h,o-z)
common/var/a(2),b,c(4),d
a=(/0,0/)
b=0
c=(/0,0,0,0/)
d=0
call add(a,b,c,d)
... (1 Reply)
Discussion started by: anshulfy
1 Replies
7. Programming
I am a INTEL fortran user recently migrated to linux and installed gfortran on my system.
I run numerical models as part of my research.
my question is on optimization of the fortran code.
I used the - vectorize option to compile for reducing the run time considerably and was happy. But... (1 Reply)
Discussion started by: schamarthi1
1 Replies
8. Programming
Hello everyone,
I'm trying since a few days to compile a f90 program with gfortran (on Ubuntu) with a makefile. The fortran program calls 2 routines written in C.
Here is my makefile:
FC = gfortran
SFC = gfortran
FFLAGS = -ffree-form -O... (21 Replies)
Discussion started by: leroygr
21 Replies
9. Programming
I have an app based on g++ and g77 that I would like to compile for OSX. My understanding is that OSX is linux of some flavor under the hood and have seen OSX users running bash shells and such. Is there a tutorial of some kind out there that someone could point me to on the subject?
LMHmedchem (7 Replies)
Discussion started by: LMHmedchem
7 Replies
10. Programming
I have code that works fine in ifort. But when trying to run on gfortran 4.7.1 (which does support quads and has no problem with real * 16) I can't cast an integer variable to a quad precision float (real*16) using something like:
factq(i) = factq(i-1) * qfloat(i)
Finding a list of the new... (2 Replies)
Discussion started by: vibrantcascade
2 Replies
LEARN ABOUT LINUX
shtool-slo
SHTOOL-SLO.TMP(1) GNU Portable Shell Tool SHTOOL-SLO.TMP(1)
NAME
shtool-slo - GNU shtool separate linker options by library class
SYNOPSIS
shtool slo [-p|--prefix str] -- -Ldir -llib [-Ldir -llib ...]
DESCRIPTION
This command separates the linker options ``-L'' and ``-l'' by library class. It's argument line can actually be an arbitrary command line
where those options are contained. slo parses these two options only and ignores the remaining contents. The result is a trivial shell
script on "stdout" which defines six variables containing the ``-L'' and ``-l'' options sorted by class:
``"SLO_DIRS_OBJ"'' and ``"SLO_LIBS_OBJ"'' contains the ``-L'' and ``-l'' options of static libraries, ``"SLO_DIRS_PIC"'' and
``"SLO_LIBS_PIC"'' contains the ``-L'' and ``-l'' options of static libraries containing PIC ("Position Independent Code") and
``"SLO_DIRS_DSO"'' and ``"SLO_LIBS_DSO"'' contains the ``-L'' and ``-l'' options of shared libraries. The -p option can be used to change
the default variable prefix from ""SLO_"" to str.
The intent of this separation is to provide a way between static and shared libraries which is important if one wants to link custom DSOs
against libraries, because not all platforms all one to link these DSOs against shared libraries. So one first has to separate out the
shared libraries and link the DSO only against the static libraries. One can use this command also to just sort the options.
OPTIONS
The following command line options are available.
-p, --prefix str
FIXME
-Ldir
Directory where libraries are searched in.
-llib
Library to search for.
EXAMPLE
# configure.in
LINK_STD="$LDFLAGS $LIBS"
eval `shtool slo $LINK_STD`
LINK_DSO="$SLO_DIRS_OBJ $SLO_LIBS_OBJ $SLO_DIRS_PIC $SLO_LIBS_PIC"
:
HISTORY
The GNU shtool slo command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1998 for Apache. It was later taken
over into GNU shtool.
SEE ALSO
shtool(1), ld(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-SLO.TMP(1)