Re: open_dll on Linux?

new topic     » goto parent     » topic index » view thread      » older message » newer message
jeremy said...
jaygade said...

Okay, so I added a section to callc.exu that opens pcre.so.3 and queries some of its configuration options. And it works on my machine.

I'll see if I can remember how to do svn stuff...

Hm, not everyone will have libpcre, which may cause the demo to err. Also, did you know that pcre is built into 4.0? You can use std/regex.e. It's compiled in statically, so no matter where Euphoria is, you have complete regex support.

Jeremy

Well, I'm pretty sure not everyone will have pcre but I was trying to find a library which would be common and had both 32- and 64-bit versions installed.

Any other suggestion would be good...

I know that pcre is supposed to be built-in to 4.0, but it is not one of the libraries which is dynamically linked (as reported by ldd) so I thought that it was a safe bet.

However, looking at my system, even though libpcre was installed, I couldn't find the C header file outside of the Euphoria source tree. Heh.

Another thing which I realized this morning was that I should have for the libc and libm passed a list of likely names to open_dll() as you suggested somewhere up above.

So I'll try and remember to do that tonight.

If someone has another suggestion for a common dynamic lib other than libpcre which Euphoria doesn't link to, I'm interested in it.

One reason I think that the demo was working even though it originally reported not being able to open libc or libm, was that those two libraries are already linked to the eui executable and so c_func and c_proc were still able to resolve them.

Sorry if this is rambling I'm still caffeinating myself.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu