Visual C++ does not seem to have snprinft

James Hawkins truiken at gmail.com
Sat Sep 16 02:41:37 CDT 2006


On 9/15/06, Segin <segin2005 at gmail.com> wrote:
> Jeff L wrote:
> > When compiling dlls/gdi/tests/metafile.c on line 1357 I get a warning
> > C4013: "snprintf" is undefined.  Looking around, it seems that snprinft
> > is in fact  _snprintf  in Visual C++.  I have found a  define
> >
> >    #if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
> >    #define snprintf _snprintf
> >    #endif
> >
> >
> > in wine/port.h but it requires config.h and they don't appear in my
> > Visual C++ system.  What is the best way to address this problem?  It
> > seems to be fairly common but I have not found an example in a test.
> >
> > Jeff Latimer
> >
> >
> >
> `config.h' is a header that is automatically generated by the Bourne
> shell script `configure' at the top of the source directory. You will
> need to use a Bourne-compatable shell to run it (There's a port of Bash
> to Windows), and you will probably need to mess around with it to get it
> to work right, but make sure you use the 'export' command to export CC
> to cl.exe, MAKE to nmake.exe, and LD to link.exe
>
> Also set your PATH.
>
> If all goes well, you've done something that I myself haven't done but
> know how to do (which seems odd, but after a while, you get used to how
> the Bourne shell works)
>
> You're probably going to need a whole lot of UNIX utilities ported to
> Windows like sed, grep, and awk for configure to work, though...
>

http://www.cygwin.com/

-- 
James Hawkins



More information about the wine-devel mailing list