Re: Can't compile nightly build with VC6
"James K. Lowden" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
ÐÐ¸Ñ Ð°Ð¸Ð» ÐавÑилов 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