lundi 20 juillet 2015

What are the basic rules and idioms to write C++ codes with good compatibility on different compilers [on hold]

There occurs so often the case: I wrote a program that works fine on VS2013. Yet when I turned to linux and compiled it with g++/gcc or clang, tons of compiling errors occur.

The case is much more desperate especially when I use a lot of templates in my project.

I think my codes must be in a very poor style. So What are the basic rules and idioms to write C++ codes with good compatibility(or at least fewer errors) on different compilers?

Aucun commentaire:

Enregistrer un commentaire