1. Jaki wyskakuje błąd? Podejrzewam, że związany z tym, że "testy" nie jest stałą. Różnica za to może wynikać z różnych kompilatorów w obu IDE, aczkolwiek najrozsądniej będzie jak podasz błąd.
2. Cytując pierwsze lepsze źródło z wiki:
In computer programming, a precompiled header is a (C or C++) header file that is compiled into an intermediate form that is faster to process for the compiler. Usage of precompiled headers may significantly reduce compilation time, especially when applied to large header files, header files that include many other header files, or header files that are included in many translation units.
To reduce compilation times, some compilers allow header files to be compiled into a form that is faster for the compiler to process. This intermediate form is known as a precompiled header, and is commonly held in a file named with the extension .pch or similar, such as .gch under the GNU Compiler Collection.
https://en.wikipedia.org/wiki/Precompiled_header
Jeśli chcesz tego uniknąć to twórz projekt jako empty project i tam dodawaj wszystkie pliki, których potrzebujesz.