If you have a big project and trying to compile in Visual Studio under window 7 or vista, it might throw an linker error - out of memory.
Follow the following simple steps to fix this error permanently.
1. Start your Visual Studio Command Prompt as an administrator.
2. Type "BCDEDIT /Set IncreaseUserVa 3072" - It will change the boot configuration so that the user mode memory would be 3GB going forward.
3. Change your directory to C:\Program Files\Microsoft Visual Studio 9\Common7\IDE\
4. Type editbin /LARGEADDRESSAWARE devenv.exe
5. Restart your computer.