Hi,
I just upgraded to the 3.9 snapshot in FTP (this is on 386) and I find
that dlopen() does not work.
For example:
a.c:
extern int x;
int foo()
{
x = 1;
}
b.c:
#include dlfcn.h
int x = 0;
int main()
{
void *dl = dlopen(./liba.so, RTLD_LAZY|RTLD_GLOBAL);
if(!dl)
dlerror();
On Tue, Mar 21, 2006 at 01:07:48PM -0500, Andrew Sveikauskas wrote:
Hi,
I just upgraded to the 3.9 snapshot in FTP (this is on 386) and I find
that dlopen() does not work.
[snip]
And then:
$ gcc -shared -o liba.so a.c
$ gcc b.c
$ ./a.out
./a.out:./liba.so: undefined symbol 'x'
On 2006-03-21 15:06:04 -0500 Dale Rahn [EMAIL PROTECTED] wrote:
eg:
$ gcc -Wl,-E b.c
Excellent. I have a configure script that wasn't adding this flag.
That fixes my problem.
Is this requirement new? It seems to work in 3.8.
3 matches
Mail list logo