I can't help with your specific problem, but maybe I can point to some reason why you may not be getting where you want. First a little background:
I'm a Linux user and compiled an entire 64 bit operating system from sources with the sole intention of compiling a native Linux 64 bit viewer. By comparison, building the OS from sources was easy compared with actually building a viewer (I still haven't managed it, though in my defence, I gave up at approx 80% successful build).
Part of the problems you will hit are due to the reliance on Linden libraries and supporting libraries. If you don;t have the correct versions, or if you are missing a supporting library your build will fail. It is also helpful to have at least some experience of compiling programs and troubleshooting problems when (rather than "if") they arise.
Whilst I appreciate that you have some experience compiling programs (I'm assuming that you used compiled, rather than interpreted QBasic) the C#. C++ etc compilers are less forgiving that any basic compilers out there, and because of the way C and its' descendants work, you have to be certain that your build environment is properly set up. I would recommend cutting your teeth on something less ambitious to give yourself a basic grounding in compiling from source, and then come back to a viewer.
As it happens, my own efforts were thwarted because the Linden libs are native 32 bit, with no 64 bit libraries available. Short of rebuilding everything LL has done I will remain stuck at 80%. Your problems, especially on Windows, are not likely to be as severe, and just a little hands on experience will go a long way.
50's sim based at Rumbled on OSGrid
happily running on Arch Linux for 1 year +