Hi, I'm looking into changing the makefile ino a makefile more simmilar to Wiresharks(if thats ok?) In there different flags is used depending on MSVC version Like (configure.nmake in top dir) !IF "$(MSVC_VARIANT)" == "MSVC6" || "$(MSVC_VARIANT)" == "MSVC2002" || "$(MSVC_VARIANT)" == "DOTNET10" || "$(MSVC_VARIANT)" == "MSVC2003" || "$(MSVC_VARIANT)" == "DOTNET11" LOCAL_CFLAGS=/Zi /W3 /MD /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) !ELSEIF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" || "$(MSVC_VARIANT)" == "MSVC2008EE" LOCAL_CFLAGS=/Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) !ELSE !ERROR MSVC_VARIANT unknown !ENDIF
which stops emmiting "deprecate" warnings I beleve if the warnings are the only problem that should do it. Regards Anders
________________________________
Från: libsmi-bounces@ibr.cs.tu-bs.de genom Juergen Schoenwaelder Skickat: ti 2008-04-15 16:28 Till: Andrew Hood Kopia: libsmi@ibr.cs.tu-bs.de Ämne: Re: [libsmi] Problem with vsnprintf and MSVC6
On Sun, Apr 13, 2008 at 12:06:53PM +1000, Andrew Hood wrote:
The attached patch shuts up all the ISO C++ deprecations warnings in MSVC8. (In CRLF format. You might want to convert to Unix format.)
It might take "#if _MSV_VER > something" for earlier versions like MSVC6. I don't have a copy of MSVC6. I could put MSCV7 on a VM to test it.
http://predef.sourceforge.net/precomp.html#sec32
has a list of appropriate values.
Is there not a better way to do this? I mean, things like strdup conform to SVr4, 4.3BSD, POSIX.1-2001 and is there really no way to with MSVC to say I want these functions even though they are not covered by ANSI C?
/js
-- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany Fax: +49 421 200 3103 http://www.jacobs-university.de/ -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://mail.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.