[Wine] build wine dll problem

tinku99 wineforum-user at winehq.org
Thu Sep 3 07:54:52 CDT 2009


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...







More information about the wine-users mailing list