question on Winelib

François Gouget
2001-03-09T18:40:05Z

On Fri, 9 Mar 2001, Wong, Carl wrote:

> How does Wine know which share library to load?????

   Simple. When a program starts, argv[0] contains the name of the
command that was used to invoke it (I'm simplifying a bit here). So when
you type Hello, wine gets 'Hello' in argv[0] and knows that it should
try to load 'Hello.so'.


> I typed in the command Hello and it popped up a Welcome to Wine dialog
> saying that I have started Wine without specifying any arguments.   What
> command should I enter to run Hello???

   Ok, it looks like you are using codeweavers-wine. So wine is in fact
a script and I believe this is why does not know which library to load.
The following should fix your problem (assuming you installed wine in
/opt/wine).
$ rm Hello
$ ln -s /opt/wine/bin/wine.bin Hello

   Then just type ./Hello and it should work. Let me know if it's not
the case.


--
Fran?ois Gouget
fgouget@codeweavers.com