Skip to Content.
Sympa Menu

freetds - Re: [freetds] Can't compile nightly build with VC6

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Can't compile nightly build with VC6
  • Date: Sun, 24 Oct 2010 04:27:59 -0400

Михаил Гаврилов wrote:
> C:\freetds-0.83.dev.20101014\src\tds\ptw32_MCS_lock.c(117) : warning
> C4013: 'InterlockedCompareExchangePointer' undefined; assuming extern
> returning int
> C:\freetds-0.83.dev.20101014\src\tds\ptw32_MCS_lock.c(165) : warning
> C4013: 'InterlockedExchangePointer' undefined; assuming extern

http://msdn.microsoft.com/en-us/library/ms683568(VS.85).aspx

ptw32_MCS_lock.c should include windows.h.

Unfortunately, the documentation doesn't mention which library provides
InterlockedExchangePointer. It is possible, though, that the function's
true name is slightly different (the result of some preprocessor magic in
windows.h) and is provided by a library you're already linking to. By
including the header file, the compiler will import the correct name,
eliminating both the compile-time warning and the linker error.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page