Re: building 0.83.dev.20101013 with VC9: _vsnprintf error

Roman Neuhauser <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
# [email protected] / 2010-10-14 09:52:26 -0400:
> On Thu, Oct 14, 2010 at 11:24:59AM +0200, Roman Neuhauser wrote:
> > here's what i got building yesterday's snapshot with VC9.
> > 
> > c:\MinGW\msys\1.0\home\roman\wc\freetds-0.83.dev.20101013>nmake -nologo -f Nmakefile FROM_TARBALL= PLATFORM=win32 CONFIGURATION=debug
> >         cl  -nologo     -W3 -Wp64 -EHsc -TC -Gm  -errorReport:prompt -D "_MBCS" -D "_LIB" -D "WIN32"  -D "_CRT_SECURE_NO_WARNINGS" -D _CRT_NONSTDC_NO_DEPRECATE -D "HAVE_CONFIG_H"  -D "_FREETDS_LIBRARY_SOURCE" -I "include" -I "win32" -I "include\x64" -c -MTd -Od -D "_DEBUG"  -ZI -RTC1   -Fo"src\replacements\win32\debug\\"  -Fd"src\replacements\win32\debug\vc80.pdb"  src\replacements\asprintf.c src\replacements\basename.c src\replacements\fakepoll.c src\replacements\gettimeofday.c src\replacements\getopt.c src\replacements\iconv.c src\replacements\readpassphrase.c src\replacements\strlcat.c src\replacements\strlcpy.c src\replacements\strtok_r.c src\replacements\vasprintf.c
> ...
> > getopt.c
> > c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : error C3163: '_vsnprintf': attributes inconsistent with previous declaration
> >         c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(350) : see declaration of '_vsnprintf'

> I would try modifying win32/config.h to define HAVE_VSNPRINTF:
> 
> #define HAVE_VSNPRINTF 1

unfortunately this alone doesn't change the compiler output,
and i'm busy with work and can't investigate it further.

freddy's advice got me through the whole build; i'll post
details later.

thanks a lot!

-- 
roman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.