Re: building a winelib dll?

2010-11-20 Thread Seth Burleigh
alright, so heres how it works: first, you need to pass spec into the right place, heres the output of the make file. winegcc -c -mno-cygwin -m32-o zmq.o zmq.c winegcc -shared zmq.dll.spec -mno-cygwin -o zmq.dll.so zmq.o -lzmq next, you need to make sure to include in zmq.c and put WIN

Re: building a winelib dll?

2010-11-19 Thread Seth Burleigh
So i thought this would be the best option. I know its simple to do, i just dont know what im doing wrong... On Thu, Nov 18, 2010 at 8:59 PM, Seth Burleigh wrote: > > Im trying to build a simple winelib. Its not working and is returning > 'error 127'. I have some question: &g

building a winelib dll?

2010-11-18 Thread Seth Burleigh
Im trying to build a simple winelib. Its not working and is returning 'error 127'. I have some question: (1) how do i determine which functions are exported by wine? All i see using nm zmq.dll.so is the names of my proxy function (add_proxy) instead of the name that is going to be called by the wi

Re: Help with simple winelib dll

2010-06-17 Thread Seth Burleigh
Thanks all! I got it to work! There was 2 mistakes with my thing - first, i had an empty definition for DllMain which caused the error 126 and then , well, i called the wrong function from metatrader. I shouldve been calling MyWinFunction. I guess i wasn't doing this because i wasn't seeing it whe

Re: Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
OK, so i have the dll built. However, it doesn't seem to be able to open. Let me explain, im using it in metatrader and so all im doing is moving the dll.so (and renamed it to MyWin.dll) to its libraries folder and doing an import statement in mql4. However, i then get a system error 'Cannot load

Re: Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
Well, adding the -shared worked! Thanks! Is there any way i can get winemaker to do this automatically? I thought the -dll option would work?

Re: Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
Thanks, the example helped, i added in the dll main part. But im still getting the WinMain error and im convinced it has something to do with how im executing winemaker. winemaker . --nosource-fix --dll --single-target MyWin --nomfc -I"." -L"." -iMyLinuxFunc The new command line result of make is

Help with simple winelib dll

2010-06-16 Thread Seth Burleigh
Im attempting to build a dll which a windows program running under wine can dynamically load. The dll will be a wrapper around a linux library. In preparation ive tried to follow the instructions here http://www.winehq.org/docs/winelib-guide/bindlls with a simple example but have not succeeded. Bel