LINK:fatal error LNK1201:error writing to program database E:MyGme\proj.win32\Debug.win32\MyGame.pdb; check for insufficient disk space,in valid path,or insufficient privilege

LINK:fatal error LNK1201:error writing to program database E:MyGme\proj.win32\Debug.win32\MyGame.pdb; check for insufficient disk space,in valid path,or insufficient privilege
0
#1

I hava a big project write in vs2010 and the cocos2d-x version is 2.1。
now I want to use the cocos2d-x 3.0 ,so I update my project.

I install the vs2012 and create a new project with cocos2d-x 3.0.
when I move my code to the new project, the problem comes , like this.

LINK:fatal error LNK1201:error writing to program database E:MyGme\proj.win32\Debug.win32\MyGame.pdb; check for insufficient disk space,in valid path,or insufficient privilege

then I reduce some code ,it is ok. And I add some code to the new project ,the problem comes again.
can some help me?

I can make sure my code is no problem ,and I clean the project ,delete debug.win32 file,restart the computer.those cannot work.

#2

I guess this problem is about with cocos2d-x 3.0。
when I create a class ,it is ok.
but when the class subclass the Layer,it is error.
it is too strenge…

#3

Hi , I Have the same problem. LNK1201 . My project has many classes then I had to delete some classes to work, but I dont know why is the problem I use visual studio 2013 with cocos2d-x 3.0. Please if you found the solution u should share :S

#4

I encountered to the similar issue. According to this https://stackoverflow.com/questions/16308861/lnk1201-visual-c-2010-large-project-failing-to-generate-pdb it seems that there is limit for Visual Studio PDB debug files size. It is important to consider, especially if cocos2d is linked statically with you project.
For some reason I caught the error when my PDB became a little more then 400 MB.

As workaround you can change PDB format like this:


in the project properties.
I did this for cocos2d lib and my exe, and the size of result PDB was reduced four times.