Re: DMAK problem

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

On Tue, Jan 07, 2003 at 01:07:41AM -0700, Jerry Story wrote:
> 
>   The program in question is at:
> 
>   http://www.edmc.net/~jstory/dmak.tar.gz
> 
>    The executable file works okay when I use command-line window and navigate 
> to the directory that it is in and type "./dmak".
>    But that seems to be the only way to run the executable file.

Hmm... in Llama, setup.exu is run in the current directory, and
writes the place where the apigtkhelp.so file is into an include file.
That include file is used by the library to figure out among other things,
where the .so file is located, so it knows where to load it from.

>    I added a note to the package explaining this.
> 
>    Someone emailed me and said he got an error:
> 
> ERROR OPENING eugtk.so
> 
>   and he says perhaps the Euphoria library wasn't statically linked.

Of course not, no Euphoria lib is staticly linked. They are all shared libs
used as dynamic.

> 
> I'm so ignorant that I don't know what "statically linked' means.  Does it 
> mean the opposite of "dynamically linked"?  I don't know what that means 
> either.
> 

Staticly linked libs are libs that are fused into the executable file,
henced linked at compile time.

Since this wastes memmory and disk space, shared libs were invented.

Shared libraries are libs that are loaded by the OS, and fused into multiple
processes at loader time (by ld.so iirc), but before any part of the program
has actually run.

Dynamic linked libaries are a variant of that idea which are loaded and linked
at run-time by the process's request, rather than that of a linker/program
loader.
The advantage here is that dynamic libs can also be unloaded.

A .so file is a shared/dynamic lib. (On disk, there is no difference between
a shared or a dynamic library. That only comes into play when a process loads
it. I.e. a lib can be dynamic for some programs and shared for others.)

Of course, its very hard for interpreted languages to use static libs.

Does any of this help?

>   What do I gotta do to get it "statically linked" or whatever?

Is it converted to C? No way to get Euphoria to use a static lib, unless
you use Eu2C first.

> 
>   It's on freshmeat but if a bunch of people download it and think it doesn't 
> work, that's no good.
> 

Good luck, I suppose.

jbrown

> ==^^===============================================================
> This email was sent to: jbrown1050 at hotpop.com
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon
 \ /  campain against
  X   HTML e-mail and
 / \  news

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

Search



Quick Links

User menu

Not signed in.

Misc Menu