Cannot find -lf2c compilation error

2009-05-19 Thread Paul Smith
Dear All, I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make cc bpmain.o minput.o mpsinp.o convert.o mpsout.o mprnt.o timer.o readpar.o bpmpd.o pddrv.o scale.o setlam.o symmfo.o

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Peter Langfelder
On Tue, May 19, 2009 at 10:18 AM, Peter Langfelder peter.langfel...@gmail.com wrote: On Tue, May 19, 2009 at 10:02 AM, Paul Smith phh...@gmail.com wrote: Dear All, I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Kevin J. Cummings
Paul Smith wrote: Dear All, I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make cc bpmain.o minput.o mpsinp.o convert.o mpsout.o mprnt.o timer.o readpar.o bpmpd.o pddrv.o scale.o

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Joe Smith
Paul Smith wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ... -L./f2c -lf2c -lm /usr/bin/ld: cannot find -lf2c ... The f2c library is[*] part of the GNU Fortran runtime

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Paul Smith
On Tue, May 19, 2009 at 6:24 PM, Joe Smith j...@martnet.com wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ... -L./f2c -lf2c -lm /usr/bin/ld: cannot find -lf2c ...

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Peter Langfelder
On Tue, May 19, 2009 at 10:02 AM, Paul Smith phh...@gmail.com wrote: Dear All, I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make cc bpmain.o minput.o mpsinp.o convert.o mpsout.o

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Jussi Lehtola
On Tue, 2009-05-19 at 18:30 +0100, Paul Smith wrote: On Tue, May 19, 2009 at 6:24 PM, Joe Smith j...@martnet.com wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ...

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Paul Smith
On Tue, May 19, 2009 at 9:16 PM, Jussi Lehtola jussi.leht...@iki.fi wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ... -L./f2c -lf2c -lm /usr/bin/ld: cannot find

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Kevin J. Cummings
Paul Smith wrote: On Tue, May 19, 2009 at 9:16 PM, Jussi Lehtola jussi.leht...@iki.fi wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ... -L./f2c -lf2c -lm /usr/bin/ld:

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Paul Smith
On Tue, May 19, 2009 at 9:54 PM, Kevin J. Cummings cummi...@kjchome.homeip.net wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ... -L./f2c -lf2c -lm /usr/bin/ld: cannot

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Jussi Lehtola
On Tue, 2009-05-19 at 21:29 +0100, Paul Smith wrote: Thanks, Jussi. Your suggestion solve the problem, but now I am getting a another one. Please, see below. Any ideas? Paul /usr/bin/ld: i386:x86-64 architecture of input file `bpmain.o' is

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Kevin J. Cummings
Paul Smith wrote: On Tue, May 19, 2009 at 9:54 PM, Kevin J. Cummings cummi...@kjchome.homeip.net wrote: I am trying to compile a program which was written in C. (The Makefile is shown below.) However, when I run the command 'make', I get the following error: $ make ... -L./f2c -lf2c -lm

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Paul Smith
On Tue, May 19, 2009 at 10:01 PM, Jussi Lehtola jussi.leht...@iki.fi wrote: Thanks, Jussi. Your suggestion solve the problem, but now I am getting a another one. Please, see below. Any ideas? Paul /usr/bin/ld: i386:x86-64 architecture of input file

Re: Cannot find -lf2c compilation error

2009-05-19 Thread Paul Smith
On Tue, May 19, 2009 at 10:01 PM, Jussi Lehtola jussi.leht...@iki.fi wrote: Try this: $ cd bpmpd_c/src $ \rm *.o $ sed -i s|CLK_TCK|CLOCKS_PER_SEC|g timer.c (One file uses an obsolete constant that needs to be replaced) $ make It runs fine, but it does not measure time. I guess that it has