[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Install the dlopenable module
From: |
thhsieh |
Subject: |
Re: Install the dlopenable module |
Date: |
Tue, 21 Aug 2001 00:16:47 +0800 |
User-agent: |
Mutt/1.2.5i |
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
[deleted ....]
: 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
Hello,
I suddently found the reason: I forgot to add the -rpath option when
linking. After fixing this, the problem goes away.
Very sorry to ask such a stupid question here. :-))
Best Regards,
T.H.Hsieh