[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Compiling dll's
From:       "Peter Hunnisett" <peter () transgaming ! com>
Date:       2002-07-26 21:20:27
[Download RAW message or body]


On Fri, 26 Jul 2002 14:00:01 -0600, steve_lustbader@hsgmed.com said:

> I'm trying to build a dll using WineLib.  The source compiles fine under windows.  \
> When I try to compile it with winelib, I get this error: 
> c++ -shared -Wl,-rpath,/usr/local/lib -Wl,-Bsymbolic -o liberrh_auto.dll.so  errh.o \
>                 errhReg.o  liberrh_auto.dll.spec.o      -lwine -lwine_unicode \
>                 -lwine_uuid -lm
> liberrh_auto.dll.spec.o: In function `LoadStringW':
> liberrh_auto.dll.spec.o(.data+0x188): undefined reference to `DllMain'
> 
> My spec file only contains this line: init    DllMain
> 
> And DllMain is defined in errh.cpp as (it's not prototyped in errh.h):
> BOOL APIENTRY DllMain( HINSTANCE h,DWORD d, LPVOID l)

extern "C" is most likely required as you've got a c++ file....

> 
> Any help?
> 
> ******************************
> Steve Lustbader
> 
> 
> 

Ciao,
Peter

> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic