[Coin-discuss] Re: [COIN-OR Open Solver Interface] #24: MSVSv8 compiler warnings
Matthew Galati
magh at lehigh.edu
Fri Feb 9 19:52:52 EST 2007
probably the easiest way to deal with this (and other MSVS warnings) is
to add to CoinPragma.hpp -- then projects can include that header for
MSVS builds
that is, if we are convinced these warnings are not important to deal
with...
better yet, each project might want to create their own ProjPragma.hpp -
then the proj manager can decide
>#24: MSVSv8 compiler warnings
>-----------------------------+----------------------------------------------
> Reporter: mgalati | Owner: mjs
> Type: defect | Status: new
> Priority: minor | Milestone:
> Component: Osi Base Class | Version: 0.95.2
>Resolution: | Keywords: warnings
>-----------------------------+----------------------------------------------
>Comment (by lou):
>
> The `deprecated' warnings should be suppressed as of
> !BuildTools/releases/0.5.4 for command line builds from cygwin or mingw
> using --enable-doscompile=msvc.
> (In general, use the -wd4996 flag to cl to suppress them.) A quick check
> says that the stable branch should be ok. Releases has not caught up yet.
> This fix may not be propagated into the MSVisualStudio project; I'm not
> sufficiently familiar with MSVS solution files to do the modifications.
>
> As I read the Microsoft documentation, they've written `secure' versions
> of a whack of basic library routines. Rather than simply making the secure
> versions the standard, they've elected to give them all new names and
> force you to change your code in order to use them.
>
>
>
More information about the Coin-discuss
mailing list