Yeah the cocos library alone compiles fine for me also. But with my project it errors with the 3.0 version.
I did managed to get it compile by setting debug information format to none, so it didn't generate any PDB file, but that is hardly any fix cos now cannot debug.
The PDB file size grows really big during compiling of my project. First it is compiling fine, but when PDB file size gets to around 300 MB then it start spamming the "Internal Compiler Error: failed to write injected code block to PDB" error. My project is having about 400 files and 40'000 lines of code. With smaller projects this doesn't cause problem tough cos the PDB file never grows that big.
Looking inside the PDB file there seem to be lots of this kinda stuff with different actions:
//+++ Start Injected Code
::cocos2d::Action * ::cocos2d::Place::clone() const
They all say that clone method, but have different action. Maybe some template stuff.
Anybody have any idea how to fix this?