문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top