Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linker out of memory LNK1102

My colleagues and I have tried to build a project containing several thousand classes , but we're getting a LNK1102 error ( Linker out of memory ) . I've seen several tips on the internet , such as increasing the virtual memory . We tried but this didn't help . We've also seen some as enabling different warning levels when compiling the code . A guy suggested enabling level 4 for warnings . How could that be done ? Are there other suggestions ?

like image 287
Vhaerun Avatar asked Oct 06 '08 12:10

Vhaerun


2 Answers

I had this fatal error LNK1102: out of memory error and solved it by using 64bits compiler and linker. You set an environment variable:

set PreferredToolArchitecture=x64

and then run Visual Studio.

like image 181
Pablo H Avatar answered Sep 19 '22 22:09

Pablo H


I just had the same problem when compiling plain C:

"*LINK : fatal error LNK1102: out of memory*"

Solution for me was: delete all *.pdb (DEBUG) files around. After that, everything was linked without problems. So probably a pdb file was defect in my case - defect in a funny way to cause this linker error.

like image 33
Gerrit Avatar answered Sep 22 '22 22:09

Gerrit