libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Install the dlopenable module


From: thhsieh
Subject: Install the dlopenable module
Date: Mon, 20 Aug 2001 09:21:27 +0800
User-agent: Mutt/1.2.5i

Hello,

I am writing a program which will use dlopen() to use other separated
modules. I want to use libtool to do this work more portable. Now my
problem is in the creating the module part. I use the following commands
to compile/link my module:

        libtool --mode=compile gcc -O2 -c -o foo.lo foo.c
        libtool --mode=link gcc -module -o foo.la foo.lo

It seems successfully. Now I get the following files in my working
directory:

        foo.c, foo.la, foo.lo, foo.o, .libs/foo.al
        .libs/foo.la (symbolic link to ../foo.la)

Now I want to install the module into my destinct directory. I use the
following command:

        libtool --mode=install install foo.la /tmp/foo_dir/

But it fails. The message is

install .libs/foo.lai /tmp/foo_dir/foo.la
install: .libs/foo.lai: No such file or directory

I have tested for libtool-1.3.3 and libtool-1.4. The results are the
same. Could anyone tell me how to fix this problem? Thanks very much. :-)


Best Regards,

T.H.Hsieh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]