The purpose of this dll is to make a binding to zeromq. Ive tried compilin natively using microsoft visual studio but it doesn't like the msvc90 dll that i have and i dont want to have to worry about distribution issues of that dll. Plus mingw is a pain to build with and often fails randomly. So i thought this would be the best option. I know its simple to do, i just dont know what im doing wrong...<br>
<br><div class="gmail_quote">On Thu, Nov 18, 2010 at 8:59 PM, Seth Burleigh <span dir="ltr"><<a href="mailto:wburle4@gmail.com" target="_blank">wburle4@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div>Im trying to build a simple winelib. Its not working and is returning 'error 127'. I have some question:<div>
<br></div><div>(1) how do i determine which functions are exported by wine? All i see using nm <a href="http://zmq.dll.so" target="_blank">zmq.dll.so</a> is the names of my proxy function (add_proxy) instead of the name that is going to be called by the windows program (add)</div>
<div>(2) whats the point of a spec file? what im saying is that i can build my files without a spec file and no error message is produced. In what stage of building is the spec file actually used?</div><div>(3) is there any way to debug just specifically the errors produced by my stub dll under wine? somehow specify a debug channel where the real reason for 'error 127' is? The stub dll being dynamically loaded by a program for which i have no source code.�</div>
<div><br></div><div>I am using these simple test files:</div><div>//in zmq.c</div><div><div>#include "zmq.h"</div><div>#include "wine/debug.h"</div><div>#include <windef.h></div><div><br></div><div>
long WINAPI add_proxy(long a,long b) {</div><div>�� �return a+b;</div><div>}�</div></div><div>;;in zmq.dll.spec</div><div>@ �stdcall add( long long ) add_proxy</div><div><br></div><div><br></div><div>and then i do</div><div>
<br></div><div><div>winegcc -c � � �-o zmq.o zmq.c</div><div>winegcc -shared -o <a href="http://zmq.dll.so" target="_blank">zmq.dll.so</a> zmq.o�</div></div><div><br></div><div>However, i notice that i can just get rid of the spec file and no error</div>
<div>messages are produced which makes no sense since the dll is supposed to redirect calls to add to add_proxy.</div><div><br></div><div>And once i use the windows program to call function add, i get the 'error 127', which means it cant find the function 'add.'</div>
<div><br></div><div><br></div><div><br></div>
</blockquote></div><br>