build wine dll problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to follow the instructions here (http://www.winehq.org/docs/winelib-guide/bindlls-wrapper) to build a dll with wine that i can load dynamically in a windows wine application.
this is what i am doing: 
MyWinDll.spec
Code:
2 stdcall MyWinFunc (int) MyProxyWinFunc


MyWin.c
Code:
#include <windef.h>
short MyProxyWinFunc(int *i)
{
  return 5;
}


shell
Code:
winemaker --nosource-fix --dll --single-target MyWin --nomfc  .
make

 I get the following error: 
Code:
/usr/lib/wine/libwinecrt0.a(exe_main.o): In function `main':
(.text+0xa9): undefined reference to `WinMain'


Why is it asking for a main function, i am trying to build a dll...






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux