List Info

Thread: make problem




make problem
user name
2006-09-25 21:38:39
gmarkowskygmail.com wrote:

> So when I see that error, is it safe to assume
> that libnetcdf.so should live in the directory
following the -L?

The flag -L points to libraries which are staticaly linked
to your
application. Those libraries are usually named *.a.
Dynamically linked
libraries (*.so) are linked with your application at runtime
and can be
pointed to by the environment variable LD_LIBRARY_PATH.

If you have a file libnetcdf.a and that file contains the
function
nf_close_ it might help to put that .a file in a directory
pointed to with
the switch -L.

regards Henrik
-- 
The address in the header is only to prevent spam. My real
address is:
hc8(at)uthyres.com Examples of addresses which go to
spammers:
rootvariousus.net rootlocalhost

_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
make problem
user name
2006-09-25 21:46:37
Henrik Carlqvist <Henrik.Carlqvistdeadspam.com> wrote:
> If you have a file libnetcdf.a and that file contains
the function
> nf_close_ it might help to put that .a file in a
directory pointed to with
> the switch -L.

Probably not.  The error here is about a missing function,
not a
missing library.  ld is finding all the libraries it was
told to
include, but none of those libraries have this function.

Greg, your best bet is to get help from whoever wrote the
program
you're trying to build.


paul


_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
make problem
user name
2006-09-25 22:06:39
Henrik Carlqvist wrote:
> gmarkowskygmail.com wrote:
> 
>> So when I see that error, is it safe to assume
>> that libnetcdf.so should live in the directory
following the -L?
> 
> The flag -L points to libraries which are staticaly
linked to your
> application. Those libraries are usually named *.a.
Dynamically linked
> libraries (*.so) are linked with your application at
runtime and can be
> pointed to by the environment variable LD_LIBRARY_PATH.
> 
> If you have a file libnetcdf.a and that file contains
the function
> nf_close_ it might help to put that .a file in a
directory pointed to with
> the switch -L.
> 
It's probably better to add a new -L switch, with the path
to the library,
rather than moving it.

nm (name) will list all the symbols in a library.
Use --defined-only to see which symbols it provides, rather
than the symbols it requires.

Colin S. Miller

-- 
Replace the obvious in my email address with the first three
letters of the hostname to reply.
_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )