Is there a way to make the msvc compiler as strict as gcc? MSVC lets me do some pretty crazy things that result in hundreds of errors when I compile in linux.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get started we’d need the version you are on (for MSVC), what sort of errors you hit (compile time, link time or run time) and so on.
Assuming you are on a relatively current version (MSVC 2008 SP1) and being bugged by compiler errors, I’d suggest the following:
mainand not_tmainorWinMain_— they are implementation specificcharwchar_t