libtool
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
libtool creating wrong symbol names??
From
:
syn (sent by Nabble.com)
Subject
:
libtool creating wrong symbol names??
Date
:
Tue, 24 Jan 2006 11:10:29 -0800 (PST)
Hi,
I'm creating a modular application that uses libtool to dlopen some modules, and I'm getting a problem when dlsym-ing. I did this sample module to track the problem:
module.cpp
--
#include <iostream>
using namespace std;
bool module_test(void *)
{
cout << "TEST OK" << endl;
return true;
}
--
relevant lines in Makefile.am
--
lib_LTLIBRARIES=libmodule.la
libmodule_la_SOURCES=module.cpp
libmodule_la_LDFLAGS=-module -export-dynamic
--
configure.in
--
AC_INIT(main.cpp)
AM_INIT_AUTOMAKE(module_test, 0.0.1)
AC_PROG_CC
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile)
--
The exact problem that I'm having is that the test program is unable to dlsym module_test, and the probable cause is this one:
$ nm .libs/libmodule.so | grep module_test
00000970 t _GLOBAL__I__Z11module_testPv
00000890 T _Z11module_testPv
$
If i try to dlsym that symbol it works correctly. Can anyone help me to fix this problem? Thanks,
View this message in context:
libtool creating wrong symbol names??
Sent from the
Gnu - Libtool - Discuss
forum at Nabble.com.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
libtool creating wrong symbol names??
,
syn (sent by Nabble.com)
<=
Re: libtool creating wrong symbol names??
,
Bob Friesenhahn
,
2006/01/24
Re: libtool creating wrong symbol names??
,
Mike Frysinger
,
2006/01/24
Prev by Date:
Re: LT_AC_PROG_SED
Next by Date:
Re: libtool creating wrong symbol names??
Previous by thread:
LT_AC_PROG_SED
Next by thread:
Re: libtool creating wrong symbol names??
Index(es):
Date
Thread