I'd like to know how to link console functions such as WriteConsoleOutputA. They are documented as implemented, and I can compile source code including these function predefinitions, but I get undefined errors when linking. I don't know which library to add to get objects linked. Thanks in advance. Ignasi Villagrasa.
On Fri, 2 Mar 2001, Ignasi Villagrasa wrote:> I'd like to know how to link console functions such as > WriteConsoleOutputA. > > They are documented as implemented, and I can compile source code > including these function predefinitions, but I get undefined errors when > linking. I don't know which library to add to get objects linked. > > Thanks in advance. Ignasi Villagrasa. > > >Just import kernel32.dll in your .spec file, I think. Lawson It is better to be lucky than good. - J. A. Soucy --- ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj.
I'm trying to migrate some console WNT pograms to Linux. I haven't used Wine tools to generate makefiles. I preferred to generate them manually. I can compile the programs without problems, but I'm not able to link Win32 functions. Some days ago I sent a message asking for help to link functions such as WriteConsoleOutputA. Someone answered that I must import kernel32.dll in my .spec file. Then, Where can I find this .spec file ? Is it always necessary the use of Wine tools to generate it ? Thanks in advance, Ignasi Villagrasa.
On Tue, 13 Mar 2001, Ignasi Villagrasa wrote:> I'm trying to migrate some console WNT pograms to Linux. I haven't used > Wine tools to generate makefiles. I preferred to generate them manually. > I can compile the programs without problems, but I'm not able to link > Win32 functions. > > Some days ago I sent a message asking for help to link functions such as > WriteConsoleOutputA. > Someone answered that I must import kernel32.dll in my .spec file. > > Then, Where can I find this .spec file ?Code it yourself, if you don't want to use winemaker to generate it for you. The format is described in <wine>/tools/winebuild/README, I think.> > Is it always necessary the use of Wine tools to generate it ? >Winemaker knows more about coding Makefiles than I do, so _I_ find it easier to use winemaker first, and hand-hack the .spec file, because I know better than it what my app needs to import. If you get to understand wine's new import mechanism, maybe you can code the Makefile yourself, but you will probably need to use winebuild to help generate the link code/link the dll's.> > Thanks in advance, Ignasi Villagrasa. >Lawson ---cut here ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj.