man gcc ;^) Yes, rather OT: [BADEIP](petter):lame>cat sharedlib.c void putname(char *name) { puts(name); } [BADEIP](petter):lame>cat foo.c int main(void) { putname("petter"); return 0; } [BADEIP](petter):shlib>cc sharedlib.c -o sharedlib.so -shared [BADEIP](petter):shlib>cc foo.c ./sharedlib.so [BADEIP](petter):shlib>a.out petter [BADEIP](petter):shlib>file sharedlib.so a.out sharedlib.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped The dynamic loader (ld.so) will autmagically load the shared library for you. Petter Wahlman On Tue, 2002-03-12 at 15:25, israel fdez wrote: > Hi... I know this is a kernel forum but I'm developing a kernel driver > and an app to work with... :-) > I need to know how can I write in C/C++ (to be compiled with gcc) a > shared object a file.so (like a windows dll), and also what to do to > load it (use it) in an application > > thanks > Israel > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/