Question

When porting my project to linux using gcc, I've come across quite a few errors that are a result of VS trying to be "convenient" such as using standard functions like "memcpy" and the "str*" functions without needing to include the right headers, or the std::exception::exception overload that takes a const char*. Is there anyway to force VS to not do this along with other non-standard behaviors?

Was it helpful?

Solution

In a word, no. MS has "extensions" like const char * for std::exception.

You could try setting up a "sanity" build, on say a continuous integration machine to build with another compiler to check.

Do try having the warning level turned all the way up. This may catch one or two things.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top