Re: fortran won't play nice with C

"Jethro Bell" <[email protected]>
Newsgroups gmane.comp.science.photonic-bands
Message-ID <[email protected]>
Thank you for the help.  I think I was getting tripped up on the FLIBS
issue (I hadn't set FLIBS at all).  Now the environment looks like:
FLIBS=-L/sw/lib/gcc/powerpc-apple-darwin8.6.0/3.4.3
-L/sw/lib/gcc/powerpc-apple-darwin8.6.0/3.4.3/../../.. -lm -lfrtbegin
-lg2c -lSystem
LDFLAGS=-L/sw/lib
CPPFLAGS=-I/sw/include

./configure --with-lapack=/sw/lib/lapack.a --with-libctl=/sw/share/libctl

Now the error I get is:
checking for libctl dir... /sw/share/libctl
checking for gen-ctl-io... yes
checking for ctl_get_vector3 in -lctl... no
configure: error: Couldn't find the required libctl library.

I've also attempted to compile libctl from source, and attempted
PATH=$PATH:/Users/me/libctl_compiled/bin
LDFLAGS="-L/sw/lib -L/Users/me/libctl_compiled/lib"
./configure --with-lapack=/sw/lib/lapack.a
--with-libctl=/Users/me/libctl_compiled/libctl/share

and trying to do this by hand results in the same error.

libctl.a does appear in the places where I think it is supposed to
(/sw/lib/libctl.a and /sw/lib/libctl.la).

Am I missing another flag somewhere?
Thank you very much,
--Jethro
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.