Krishnan Venkatraman
2005-Apr-21 04:52 UTC
[Wine]Compiling libraries using WineLib under g++
I am a newcomer to programming on Linux. I am trying to port the source code of some of my libraries (DLLs) under win32 to Linux. I am using WineLib to provide me the basic Win32 API implementation. I am able to compile my code using WineLib, but I am not able to perform the link operation. I have installed the latest development release (20050310). All the Win32 API functions that I use are being reported as undefined. I tried specifying the -lwine option to g++,but I could not locate libwine.a on my machine. How do I create it using the WineLib release? Thanks, Krishnan
Hi, I tried to locate libwine.a on my PC but could not locate it! I had downloaded the winelib release from SourceForge and ran the tools/wineinstall script to compile and install WineLib as per the readme. I am missing anything? Regards, Krishnan ----- Original Message ----- From: "Lars Segerlund" <lars.segerlund@comsys.se> To: "Krishnan Venkatraman" <v_krishnan@s3india.com> Sent: Thursday, April 21, 2005 6:07 PM Subject: Re: [Wine]Compiling libraries using WineLib under g++> > Hi libwine might be placed in a fun location, try find /. -name libwine.a > which will search everything to find the location. > > after this specify the path with -L<path to libwine> in addition to theother flags on the command line.> > If youre having problem later the LD_LIBRARY_PATH is off, set it toinclude the path> lo libwine.so for runtime linking. > > This should work .. > > / hope this helps, Lars Segerlund. > > On Thu, 21 Apr 2005 15:22:57 +0530 (IST) > "Krishnan Venkatraman" <v_krishnan@s3india.com> wrote: > > > I am a newcomer to programming on Linux. I am trying to port the sourcecode> > of some of my libraries (DLLs) under win32 to Linux. I am using WineLibto> > provide me the basic Win32 API implementation. I am able to compile mycode> > using WineLib, but I am not able to perform the link operation. I have > > installed the latest development release (20050310). All the Win32 API > > functions that I use are being reported as undefined. I tried specifyingthe> > -lwine option to g++,but I could not locate libwine.a on my machine. Howdo> > I create it using the WineLib release? > > > > Thanks, > > Krishnan > > > > _______________________________________________ > > wine-users mailing list > > wine-users@winehq.org > > http://www.winehq.org/mailman/listinfo/wine-users >
On Mon, 25 Apr 2005 10:04:15 +0530, Krishnan V wrote:> I tried to locate libwine.a on my PC but could not locate it! I had > downloaded the winelib release from SourceForge and ran the > tools/wineinstall script to compile and install WineLib as per the readme. I > am missing anything?You need to use wineg++ not g++ directly. thanks -mike
From: Mike Hearn <mike@navi.cx> Date: Thu, 28 Apr 2005 00:29:44 +0100 Subject: [Wine]Re: Compiling libraries using WineLib under g++ You need to use wineg++ not g++ directly. I compiled a DLL using wineg++. But that executable I get is a shell script for executing the WineLoader. Please clarify whether compiling an app/dll under wine will still require the WineLoader or if WineLoader is only for applications to be executed as such in their original binary form?