This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: libkernel32a.lib
- To: root <root at jacob dot remcomp dot fr>
- Subject: Re: libkernel32a.lib
- From: Ben Elliston <bje at cygnus dot com>
- Date: Thu, 17 Sep 1998 22:11:47 +1000 (EST)
- cc: Mumit Khan <khan at xraylith dot wisc dot edu>, gnu-win32 at cygnus dot com
> TryEnterCriticalSection is not defined in the version of kernel32.dll under
> windows 95.
Right.
> Now, if Mumit would add an entry to the import libraries, this would make
> the linker happy but... at run time your program would not load and you
> would get a dialog box with
> foo.exe is linked to missing export TryEnterCriticalSection.
I'm not so sure about that (others will prove me right or wrong here), but
you'll only get a runtime load error if foo.exe actually wants to use
TryEnterCriticalSection, right?
If that's the case, then nothing is lost--you just don't get the error
detection so early in the build process.
> Another, solution, is the one that lcc-win32 has used: If a function exists,
> it is included in the import library. If you use TryEnterCriticalSection with
> lcc-win32 you will see no errors at link time, but your program will NOT load
> under windows 95/windows NT 3.51.
Right. So what's the difference between what you've just said will happen
and what lcc-win32 does? Apparently nothing.
Users of this import library will have to take the same precautions as if
they were trying to avoid a linker error.
> If you have problems with this approach, I recommend you to spend the US$ 2.000
> and get Visual Studio professional 6.0.
You are joking, right?
> There, you will get everything you need and much (MUCH) more.
Too much more.
Cheers, Ben
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".