From: Paul G. <pga...@at...> - 2003-05-12 00:20:09
|
> Works fine on WinXP SP 1 as well... > > Chris > > > -----Original Message----- > > From: min...@li... [mailto:mingw-msys- > > ad...@li...] On Behalf Of Paul G. Sent: Wednesday, > > April 16, 2003 6:10 PM To: min...@li... Subject: > > Re: [Mingw-msys] Snapshot: MSYS-1.0.9-2003.04.14-1.exe > > > > Hi folks, > > > > No problems with NT4. > > > > Paul G. > > > > > Hello! > > > > > > The new snapshot does not seem to work on win98(se) systems. > > > I get following error: > > > The MSYS-1.0.DLL file is linked to missing export > > > NETAPI32.DLL:NetServerEnum. > > > > > > I havn't tested it on other systems (nt compat.) Actually, netapi32.dll (Win9x, including SE, and probably ME), do not have a "NetServerEnum" function listed as part of the .dll itself. Which means, of course, that regardless of how many times you try to link NetServerEnum by only including Netapi32.dll as a .dll to be loaded (eg., -lnetapi32) Win9x/SE (and probably ME) will always return link errors. Why? For Win98/SE (and probably ME): Netapi32.dll has only one single function reference which is included as part of netapi32.dll, "_NETBIOS" All of the other Operating Systems (any that are derived from or descended/derived from NT[4], including 2000 and XP-Pro/XP-Home, possibly .NET) include "NetServerEnum" as a legally linked and useable function whenever "- lnetapi32" is used. Notice I referenced "netapi32.dll", not "netapi.dll". A nasty hack (well, maybe not "that" nasty), if you want to give it a try, is to add a library reference for your Win98/SE(/Me?) OS command line: -lnetapi. If you do that, then you should be able to linke "NetServerEnum" without problems. (eg, "gcc foo.c -ofoo.exe -mwindows -lnetapi"). Also, remember, this added reference (-lnetapi) is only necessary in the case that you must use the "NetServerEnum" function in your Win98/SE(/Me?) (Win32api) application. > > > > > > A 'workaround' is to replace new msys dll with older dll. As noted above, there is a more elegant ("better and more convenient") solution if you are attempting to test the functionality of the msys-1.0.dll for the Msys snapshot release (1.09) Instead of going back to the old msys.dll (ie. pre-1.09, which can really mess things up when it comes to testing, verifying and/or diagnosing msys-1.0.dll snapshot functionality), add "-lnetapi" to your compiler command line. Paul G. |