<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br>Trying to run the simple listener example from s7 manual under FFI.<br><br>$ gcc -c s7.c -I.<br><br>ok.<br><br>$ gcc -o doc7 doc7.c s7.o -lm -I.<br><br>s7.o: In function `g_load':<br>s7.c:(.text+0x4a177): undefined reference to `dlopen'<br>s7.c:(.text+0x4a192): undefined reference to `dlsym'<br>s7.c:(.text+0x4a1b6): undefined reference to `dlerror'<br>s7.c:(.text+0x4a1e9): undefined reference to `dlclose'<br>s7.c:(.text+0x4a1f0): undefined reference to `dlerror'<br>collect2: error: ld returned 1 exit status<br><br>I tried just including dlfcn.h in s7.c but that didn't fix it. Wondering what lib or headers I'm missing. I do have a ld-2.16.so in usr/lib if that's what it needs.<br><br>thanks,<br>Jim Hearon<br><br>                                            </div></body>
</html>