From: Sven B. <Sve...@s2...> - 2006-06-15 11:00:52
|
Hi, Sven Bachmann wrote: > ... > Its a simple task and it works if I replace the Perl frontend with a > simple C program. > > But when I use the Perl program with the library generated by Swig the > backend tells me, that it can't find the register function of the library. > > As an workaround, I can link the library against the backend, but the > student who programs on the lib thinks that this is dirty (maybe it is, > but at the moment it is the only way that works with the Swig generated > lib). > ... ok, I think I've found a solution. The following line has to be added after the @EXPORT line in the generated .pm file: sub dl_load_flags { 0x01 } This enables the RTLD_GLOBAL flag. Maybe there is a parameter for the .i file, but I didn't found one yet. Bye, Sven |