Tuesday, November 5, 2013

Netbeans on Windows

I am more than a little bit irritable since I have started my all liquid diet. We are two weeks out from surgery as of today. The major aggravation is MiKTeX, let me do a stack trace to the beginning, after extolling the virtues of Netbeans, I decided to run it on my windows machine.  This was a mistake as I am using Avast anti-virus software and it sees compilers and IDEs not made by Microsoft as malware. In order to install Netbeans I had to disable Avast. So the procedure for that is:

  1. Download Netbeans for windows 
  2. Disable Avast
  3. Install Netbeans for windows. 

Next I installed MinGW, the minimalist gnu software distribution for windows. (Here is a link to the MinGW installer.) After all of this Avast decided that any attempt to scan the MinGW exes by Netbeans was an attack. So after adding the following file system exceptions:

Then adding the following exceptions to the "Deep Screen" feature:


I was finally able to compile C++ programs. Before I got this far I needed to do something even more annoying. It turns out that MiKTeX comes with its own version of libstdc++, and thus causes your programs to bail, so you have to statically link to libstdc++.a in the MinGW lib directory in order for the damn thing to work. So yeah fun times all around for my first day without food since I was a toddler. It should be noted that on Linux this ish just works. 

No comments:

Post a Comment